about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-07-13 17:42:32 +0000
committerAndreas Jaeger <aj@suse.de>2000-07-13 17:42:32 +0000
commitfe97f9746a967fa0f89dad54f59c143482af812d (patch)
treec3a7947a0729266c0834e816516a45749c7e1391 /sysdeps
parent9cd865e0ce0563d875b818d6d8e7032dc6d2817f (diff)
downloadglibc-fe97f9746a967fa0f89dad54f59c143482af812d.tar.gz
glibc-fe97f9746a967fa0f89dad54f59c143482af812d.tar.xz
glibc-fe97f9746a967fa0f89dad54f59c143482af812d.zip
Fix typo in comment.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/getcwd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/getcwd.c b/sysdeps/unix/sysv/linux/getcwd.c
index 417841664e..b819f948fd 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);