]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix typo in cuserid
authorAndreas Schwab <schwab@redhat.com>
Thu, 25 Mar 2010 10:35:05 +0000 (11:35 +0100)
committerPetr Baudis <pasky@ucw.cz>
Wed, 12 May 2010 00:22:09 +0000 (02:22 +0200)
(cherry picked from commit 34b514dff6acf8f1cac0afefd24049e025fd62ea)

ChangeLog
sysdeps/posix/cuserid.c

index 3198695b54f44643e4f3774ba27fc71ccb5b764c..92ec78d8c6b3add8577015250950c49cb44997e1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-03-25  Andreas Schwab  <schwab@redhat.com>
+
+       * sysdeps/posix/cuserid.c: Fix typo.
+
 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
 
        [BZ #11397]
index f30c20e3f88bd99ececbfd998c0390050ec4358e..a74ff843687580c2443b7fa6a98accc1e4f66450 100644 (file)
@@ -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);
 }