From 34b514dff6acf8f1cac0afefd24049e025fd62ea Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Thu, 25 Mar 2010 11:35:05 +0100 Subject: Fix typo in cuserid --- sysdeps/posix/cuserid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/posix') 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); } -- cgit v1.2.3