summaryrefslogtreecommitdiff
path: root/usr.bin/ftp
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2000-03-22 15:38:24 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2000-03-22 15:38:24 +0000
commitfe693e3bfdb2f6a90ed9fe2f581dd3eb9de08318 (patch)
tree8a200700cd805ba27eb313c1404ddc685701976e /usr.bin/ftp
parent1de93c5268340aff71b319e8d21829279cadb3fc (diff)
fix overflows, ok aaron@
Diffstat (limited to 'usr.bin/ftp')
-rw-r--r--usr.bin/ftp/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c
index 859188ecb80..aecaaa69cf0 100644
--- a/usr.bin/ftp/main.c
+++ b/usr.bin/ftp/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.44 1999/12/08 12:57:06 itojun Exp $ */
+/* $OpenBSD: main.c,v 1.45 2000/03/22 15:38:23 markus Exp $ */
/* $NetBSD: main.c,v 1.24 1997/08/18 10:20:26 lukem Exp $ */
/*
@@ -73,7 +73,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 10/9/94";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.44 1999/12/08 12:57:06 itojun Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.45 2000/03/22 15:38:23 markus Exp $";
#endif
#endif /* not lint */
@@ -450,7 +450,8 @@ cmdscanner(top)
* XXX - bogus commands with a colon in
* them will not elicit an error.
*/
- if (el_parse(el, margc, margv) != 0)
+ if (editing &&
+ el_parse(el, margc, margv) != 0)
#endif /* !SMALL */
fputs("?Invalid command.\n", ttyout);
continue;