mirror of git://sourceware.org/git/glibc.git
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>
|
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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue