1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

Fix typo in cuserid

This commit is contained in:
Andreas Schwab
2010-03-25 11:35:05 +01:00
parent 03615f7d83
commit 34b514dff6
2 changed files with 5 additions and 1 deletions

View 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);
}