From: Andreas Schwab Date: Thu, 25 Mar 2010 10:35:05 +0000 (+0100) Subject: Fix typo in cuserid X-Git-Tag: fedora/glibc-2.11.90-17~2^2~46^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=34b514dff6acf8f1cac0afefd24049e025fd62ea;p=thirdparty%2Fglibc.git Fix typo in cuserid --- diff --git a/ChangeLog b/ChangeLog index 08db0200609..13f07495d08 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-03-25 Andreas Schwab + + * sysdeps/posix/cuserid.c: Fix typo. + 2010-03-16 Chris Demetriou * locale/programs/simple-hash.c: Include inttypes.h. diff --git a/sysdeps/posix/cuserid.c b/sysdeps/posix/cuserid.c index f30c20e3f88..a74ff843687 100644 --- a/sysdeps/posix/cuserid.c +++ b/sysdeps/posix/cuserid.c @@ -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); }