diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 2001-02-04 20:33:24 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 2001-02-04 20:33:24 +0000 |
commit | 1f2e1421f3ad0919744754aeb577231be4951c2e (patch) | |
tree | ab2e9320ac04bed6bc2091d7b44e4d59c331f395 /libexec/ftpd | |
parent | c394965a9b021a0566bb9c5564d5603572d77536 (diff) |
Whoops, don't use strlcpy with utmp; millert@
Diffstat (limited to 'libexec/ftpd')
-rw-r--r-- | libexec/ftpd/ftpd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 1d26b63eb2a..c11434bba0a 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ftpd.c,v 1.91 2001/02/03 21:48:47 pjanzen Exp $ */ +/* $OpenBSD: ftpd.c,v 1.92 2001/02/04 20:33:23 pjanzen Exp $ */ /* $NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $ */ /* @@ -938,9 +938,9 @@ skip: if (doutmp) { memset((void *)&utmp, 0, sizeof(utmp)); (void)time(&utmp.ut_time); - (void)strlcpy(utmp.ut_name, pw->pw_name, sizeof(utmp.ut_name)); - (void)strlcpy(utmp.ut_host, remotehost, sizeof(utmp.ut_host)); - (void)strlcpy(utmp.ut_line, ttyline, sizeof(utmp.ut_line)); + (void)strncpy(utmp.ut_name, pw->pw_name, sizeof(utmp.ut_name)); + (void)strncpy(utmp.ut_host, remotehost, sizeof(utmp.ut_host)); + (void)strncpy(utmp.ut_line, ttyline, sizeof(utmp.ut_line)); login(&utmp); } |