diff options
author | Andreas Schwab <schwab@redhat.com> | 2010-03-25 11:35:05 +0100 |
---|---|---|
committer | Andreas Schwab <schwab@redhat.com> | 2010-03-25 11:36:02 +0100 |
commit | 34b514dff6acf8f1cac0afefd24049e025fd62ea (patch) | |
tree | a8d3602ee8d42abe2f2851e83231d71377672e77 | |
parent | 03615f7d837398790f88f7bd936a33a99e799af5 (diff) | |
download | glibc-34b514dff6acf8f1cac0afefd24049e025fd62ea.tar.gz glibc-34b514dff6acf8f1cac0afefd24049e025fd62ea.tar.xz glibc-34b514dff6acf8f1cac0afefd24049e025fd62ea.zip |
Fix typo in cuserid
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | sysdeps/posix/cuserid.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 08db020060..13f07495d0 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-16 Chris Demetriou <cgd@google.com> * locale/programs/simple-hash.c: Include inttypes.h. 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); } |