diff options
author | Tobias Weingartner <weingart@cvs.openbsd.org> | 1998-02-08 21:04:17 +0000 |
---|---|---|
committer | Tobias Weingartner <weingart@cvs.openbsd.org> | 1998-02-08 21:04:17 +0000 |
commit | 745a503ce72166bb4703106dce968161ca0e0651 (patch) | |
tree | c556e6e7a762efdfae26302c6459a72712e7b9d3 | |
parent | 675d856532243ac50b1c14805a74c84028d4824c (diff) |
Apply fix for PR# 406. Thanks to
Motomichi Matsuzaki (mzaki@e-mail.ne.jp)
for the fix.
-rw-r--r-- | usr.bin/ftp/cmds.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ftp/cmds.c b/usr.bin/ftp/cmds.c index fd19c959389..73753b8c847 100644 --- a/usr.bin/ftp/cmds.c +++ b/usr.bin/ftp/cmds.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmds.c,v 1.24 1997/09/10 20:55:08 millert Exp $ */ +/* $OpenBSD: cmds.c,v 1.25 1998/02/08 21:04:16 weingart Exp $ */ /* $NetBSD: cmds.c,v 1.27 1997/08/18 10:20:15 lukem Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)cmds.c 8.6 (Berkeley) 10/9/94"; #else -static char rcsid[] = "$OpenBSD: cmds.c,v 1.24 1997/09/10 20:55:08 millert Exp $"; +static char rcsid[] = "$OpenBSD: cmds.c,v 1.25 1998/02/08 21:04:16 weingart Exp $"; #endif #endif /* not lint */ @@ -1456,7 +1456,7 @@ quote1(initial, argc, argv) for (i = 2; i < argc && len < sizeof(buf); i++) { buf[len++] = ' '; len += strlen(strncpy(&buf[len], argv[i], - sizeof(buf) - len) - 1); + sizeof(buf) - len - 1)); } } if (command(buf) == PRELIM) { |