about summary refs log tree commit diff
path: root/sysdeps/posix/cuserid.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2010-03-25 11:35:05 +0100
committerAndreas Schwab <schwab@redhat.com>2010-03-25 11:36:02 +0100
commit34b514dff6acf8f1cac0afefd24049e025fd62ea (patch)
treea8d3602ee8d42abe2f2851e83231d71377672e77 /sysdeps/posix/cuserid.c
parent03615f7d837398790f88f7bd936a33a99e799af5 (diff)
downloadglibc-34b514dff6acf8f1cac0afefd24049e025fd62ea.tar.gz
glibc-34b514dff6acf8f1cac0afefd24049e025fd62ea.tar.xz
glibc-34b514dff6acf8f1cac0afefd24049e025fd62ea.zip
Fix typo in cuserid
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);
 }