mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Fix typo in cuserid
This commit is contained in:
@ -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>
|
2010-03-16 Chris Demetriou <cgd@google.com>
|
||||||
|
|
||||||
* locale/programs/simple-hash.c: Include inttypes.h.
|
* locale/programs/simple-hash.c: Include inttypes.h.
|
||||||
|
@ -44,6 +44,6 @@ cuserid (s)
|
|||||||
|
|
||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
s = name;
|
s = name;
|
||||||
s[L_userid - 1] = '\0';
|
s[L_cuserid - 1] = '\0';
|
||||||
return strncpy (s, pwptr->pw_name, L_cuserid - 1);
|
return strncpy (s, pwptr->pw_name, L_cuserid - 1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user