summaryrefslogtreecommitdiffstats
path: root/usr.bin/ftp
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-06-23 14:39:23 +0000
committerru <ru@FreeBSD.org>2000-06-23 14:39:23 +0000
commit16efc72e25ce23ad0978ef49794b97ad35f08b74 (patch)
tree203f78d7cc6542440266d6a1911677a4e7aee7d3 /usr.bin/ftp
parent0b74e561b2f945cb85409f180e1e43164c2b02b1 (diff)
downloadFreeBSD-src-16efc72e25ce23ad0978ef49794b97ad35f08b74.zip
FreeBSD-src-16efc72e25ce23ad0978ef49794b97ad35f08b74.tar.gz
Get rid of segfault in a `site %s' case.
Submitted by: Max Khon <fjoe@iclub.nsu.ru>
Diffstat (limited to 'usr.bin/ftp')
-rw-r--r--usr.bin/ftp/cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ftp/cmds.c b/usr.bin/ftp/cmds.c
index acc3c6b..9da2a84 100644
--- a/usr.bin/ftp/cmds.c
+++ b/usr.bin/ftp/cmds.c
@@ -1461,7 +1461,7 @@ quote1(initial, argc, argv)
len += len1;
}
}
- if (command(buf) == PRELIM) {
+ if (command("%s", buf) == PRELIM) {
while (getreply(0) == PRELIM)
continue;
}
OpenPOWER on IntegriCloud