Fix typo in cuserid
authorAndreas Schwab <schwab@redhat.com>
Thu, 25 Mar 2010 10:35:05 +0000 (11:35 +0100)
committerAndreas Schwab <schwab@redhat.com>
Thu, 25 Mar 2010 10:36:02 +0000 (11:36 +0100)
ChangeLog
sysdeps/posix/cuserid.c

index 08db020..13f0749 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-03-25  Andreas Schwab  <schwab@redhat.com>
+
+       * sysdeps/posix/cuserid.c: Fix typo.
+
 2010-03-16  Chris Demetriou  <cgd@google.com>
 
        * locale/programs/simple-hash.c: Include inttypes.h.
index f30c20e..a74ff84 100644 (file)
@@ -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);
 }