aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2010-03-25 11:35:05 +0100
committerPetr Baudis <pasky@ucw.cz>2010-05-12 02:22:09 +0200
commit8469d71f1ffc0c910f69b9097fafdcf6594e108f (patch)
treed93ea4021b42ead8f8a4bd5c323cbff76ae007af
parentf273badc6b317d8d0ba9ba52e873c98a7e72a4e7 (diff)
downloadglibc-8469d71f1ffc0c910f69b9097fafdcf6594e108f.tar
glibc-8469d71f1ffc0c910f69b9097fafdcf6594e108f.tar.gz
glibc-8469d71f1ffc0c910f69b9097fafdcf6594e108f.tar.bz2
glibc-8469d71f1ffc0c910f69b9097fafdcf6594e108f.zip
Fix typo in cuserid
(cherry picked from commit 34b514dff6acf8f1cac0afefd24049e025fd62ea)
-rw-r--r--ChangeLog4
-rw-r--r--sysdeps/posix/cuserid.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3198695b54..92ec78d8c6 100644
--- 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]
diff --git a/sysdeps/posix/cuserid.c b/sysdeps/posix/cuserid.c
index f30c20e3f8..a74ff84368 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);
}