From: Andreas Jaeger Date: Thu, 13 Jul 2000 17:42:32 +0000 (+0000) Subject: Fix typo in comment. X-Git-Tag: cvs/glibc_2-1-92~211 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe97f9746a967fa0f89dad54f59c143482af812d;p=platform%2Fupstream%2Fglibc.git Fix typo in comment. --- diff --git a/sysdeps/unix/sysv/linux/getcwd.c b/sysdeps/unix/sysv/linux/getcwd.c index 4178416..b819f94 100644 --- a/sysdeps/unix/sysv/linux/getcwd.c +++ b/sysdeps/unix/sysv/linux/getcwd.c @@ -105,6 +105,7 @@ __getcwd (char *buf, size_t size) { if (buf == NULL && size == 0) { + /* Ensure that the buffer is only as large as necessary. */ buf = realloc (path, (size_t) retval); if (buf == NULL) /* `realloc' failed but we still have the original string. */ @@ -115,7 +116,7 @@ __getcwd (char *buf, size_t size) # if __ASSUME_GETCWD_SYSCALL /* It should never happen that the `getcwd' syscall failed because - the buffer is too small if we allocated the buffer outselves + the buffer is too small if we allocated the buffer ourselves large enough. */ assert (errno != ERANGE || buf != NULL || size != 0);