about summary refs log tree commit diff
path: root/sysdeps/posix/cuserid.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix/cuserid.c')
-rw-r--r--sysdeps/posix/cuserid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/posix/cuserid.c b/sysdeps/posix/cuserid.c
index f30c20e3f8..a74ff84368 100644
--- a/sysdeps/posix/cuserid.c
+++ b/sysdeps/posix/cuserid.c
@@ -44,6 +44,6 @@ cuserid (s)
 
   if (s == NULL)
     s = name;
-  s[L_userid - 1] = '\0';
+  s[L_cuserid - 1] = '\0';
   return strncpy (s, pwptr->pw_name, L_cuserid - 1);
 }