summaryrefslogtreecommitdiff
path: root/shadow
diff options
context:
space:
mode:
Diffstat (limited to 'shadow')
-rw-r--r--shadow/sgetspent_r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shadow/sgetspent_r.c b/shadow/sgetspent_r.c
index 3ad72f0c0a..134a45e5b4 100644
--- a/shadow/sgetspent_r.c
+++ b/shadow/sgetspent_r.c
@@ -66,7 +66,7 @@ struct spwd *
__sgetspent_r (const char *string, struct spwd *result, char *buffer,
int buflen)
{
- return parse_line (strncpy (string, buffer, buflen), result, NULL, 0)
+ return parse_line (strncpy (buffer, string, buflen), result, NULL, 0)
? result : NULL;
}
weak_alias (__sgetspent_r, sgetspent_r)