mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 22:30:07 +00:00
Fix typo in cuserid
This commit is contained in:
parent
03615f7d83
commit
34b514dff6
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user