diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-06-08 16:55:59 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-06-08 16:55:59 +0000 |
commit | cc9e6eaf80a144fd276a4d9b0efe8b4b191bb222 (patch) | |
tree | ce48ae6dcaacb6542457f5f31095679d97baeb68 /usr.bin/ftp/ftp.c | |
parent | 503cfb3b7d8ba1f4a1662a1ecb77832551c23278 (diff) |
Fix some problems noted by lukem@netbsd.org
o getopt string is wrong in main(); (missing : after P)
o use of vprintf(...) instead of vfprintf(ttyout,...) in ftp.c::command()
o missing \n in fputs in cmds.c::status()
o should use strtol() instead of atol()
o sometimes use 'NULL' instead of 'NUL' (in comments)
Diffstat (limited to 'usr.bin/ftp/ftp.c')
-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 a70179ded88..d2b3da5c394 100644 --- a/usr.bin/ftp/ftp.c +++ b/usr.bin/ftp/ftp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ftp.c,v 1.27 1998/05/13 10:42:35 deraadt Exp $ */ +/* $OpenBSD: ftp.c,v 1.28 1998/06/08 16:55:57 millert Exp $ */ /* $NetBSD: ftp.c,v 1.27 1997/08/18 10:20:23 lukem Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)ftp.c 8.6 (Berkeley) 10/27/94"; #else -static char rcsid[] = "$OpenBSD: ftp.c,v 1.27 1998/05/13 10:42:35 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: ftp.c,v 1.28 1998/06/08 16:55:57 millert Exp $"; #endif #endif /* not lint */ @@ -239,7 +239,7 @@ command(va_alist) else if (strncmp("ACCT ", fmt, 5) == 0) fputs("ACCT XXXX", ttyout); else - vprintf(fmt, ap); + vfprintf(ttyout, fmt, ap); va_end(ap); putc('\n', ttyout); (void)fflush(ttyout); |