Fix typo in cuserid

This commit is contained in:
Andreas Schwab 2010-03-25 11:35:05 +01:00
parent 03615f7d83
commit 34b514dff6
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View 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);
}