Skip to content

Commit

Permalink
Fix typo in cuserid
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwab committed Mar 25, 2010
1 parent 03615f7 commit 34b514d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion sysdeps/posix/cuserid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 34b514d

Please sign in to comment.