summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2006-05-19 04:05:36 +0000
committerRay Lai <ray@cvs.openbsd.org>2006-05-19 04:05:36 +0000
commit5247e791db2d68596c0c6728905a86d7ceb03c99 (patch)
treed26e18a241190d880ba7aa7acfd64ba43d6eed53 /usr.bin
parent06a555d343b546a19e63b23e850ec6ba9841db49 (diff)
Remove ``sanity check'' that is already done in loop.
OK beck@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ftp/cmds.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/usr.bin/ftp/cmds.c b/usr.bin/ftp/cmds.c
index e41ec4f322e..5bfa2d34f04 100644
--- a/usr.bin/ftp/cmds.c
+++ b/usr.bin/ftp/cmds.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmds.c,v 1.51 2006/05/16 23:43:16 ray Exp $ */
+/* $OpenBSD: cmds.c,v 1.52 2006/05/19 04:05:35 ray Exp $ */
/* $NetBSD: cmds.c,v 1.27 1997/08/18 10:20:15 lukem Exp $ */
/*
@@ -60,7 +60,7 @@
*/
#if !defined(lint) && !defined(SMALL)
-static const char rcsid[] = "$OpenBSD: cmds.c,v 1.51 2006/05/16 23:43:16 ray Exp $";
+static const char rcsid[] = "$OpenBSD: cmds.c,v 1.52 2006/05/19 04:05:35 ray Exp $";
#endif /* not lint and not SMALL */
/*
@@ -1412,11 +1412,6 @@ quote1(const char *initial, int argc, char *argv[])
(void)strlcpy(buf, initial, sizeof(buf));
if (argc > 1) {
for (i = 1, len = strlen(buf); i < argc && len < sizeof(buf)-1; i++) {
-
- /* Sanity check */
- if (len >= sizeof(buf) - 1)
- break;
-
/* Space for next arg */
if (len > 1)
buf[len++] = ' ';