diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-06-09 02:36:04 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-06-09 02:36:04 +0000 |
commit | d1e2028ffb43811e5f41ac689ed0a491256f7cc2 (patch) | |
tree | a6852b01d2e5fd960c967c7f7c19b26a68c6d83c /usr.bin/ftp | |
parent | 9d88e955dcdc2e5d812dd9c2cd56b548cd01c3ad (diff) |
strlcpy fix, PR 2727
Diffstat (limited to 'usr.bin/ftp')
-rw-r--r-- | usr.bin/ftp/ftp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ftp/ftp.c b/usr.bin/ftp/ftp.c index 6626c2e3973..dc4b122ae33 100644 --- a/usr.bin/ftp/ftp.c +++ b/usr.bin/ftp/ftp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ftp.c,v 1.47 2002/06/09 00:40:29 itojun Exp $ */ +/* $OpenBSD: ftp.c,v 1.48 2002/06/09 02:36:03 itojun Exp $ */ /* $NetBSD: ftp.c,v 1.27 1997/08/18 10:20:23 lukem Exp $ */ /* @@ -67,7 +67,7 @@ #if 0 static char sccsid[] = "@(#)ftp.c 8.6 (Berkeley) 10/27/94"; #else -static char rcsid[] = "$OpenBSD: ftp.c,v 1.47 2002/06/09 00:40:29 itojun Exp $"; +static char rcsid[] = "$OpenBSD: ftp.c,v 1.48 2002/06/09 02:36:03 itojun Exp $"; #endif #endif /* not lint */ @@ -431,7 +431,7 @@ getreply(expecteof) if (len > sizeof(reply_string)) len = sizeof(reply_string); - (void)strlcpy(reply_string, current_line, len + 1); + (void)strlcpy(reply_string, current_line, len); } if (continuation && code != originalcode) { if (originalcode == 0) |