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.1-7~1^2~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8469d71f1ffc0c910f69b9097fafdcf6594e108f;p=thirdparty%2Fglibc.git Fix typo in cuserid (cherry picked from commit 34b514dff6acf8f1cac0afefd24049e025fd62ea) --- diff --git a/ChangeLog b/ChangeLog index 3198695b54f..92ec78d8c6b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-03-25 Andreas Schwab + + * sysdeps/posix/cuserid.c: Fix typo. + 2010-03-24 Ulrich Drepper [BZ #11397] 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); }