about summary refs log tree commit diff
path: root/io
diff options
context:
space:
mode:
Diffstat (limited to 'io')
-rw-r--r--io/getwd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io/getwd.c b/io/getwd.c
index 510a681d78..506aac8472 100644
--- a/io/getwd.c
+++ b/io/getwd.c
@@ -38,10 +38,10 @@ getwd (buf)
       return NULL;
     }
 
-  if (getcwd (tmpbuf, LOCAL_PATH_MAX) == NULL)
+  if (getcwd (tmpbuf, PATH_MAX) == NULL)
     {
       /* We use 1024 here since it should really be enough and because
-	 this is a save value.  */
+	 this is a safe value.  */
       __strerror_r (errno, buf, 1024);
       return NULL;
     }