From 8c7b6af3535bcb2e9733499cbc99ee0dd158a786 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Tue, 1 Sep 1998 14:56:31 +0000 Subject: [PATCH] (quote1): fix % quoting bug git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5141 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftp/cmds.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/appl/ftp/ftp/cmds.c b/appl/ftp/ftp/cmds.c index cbb9e66de..e5b0b3af4 100644 --- a/appl/ftp/ftp/cmds.c +++ b/appl/ftp/ftp/cmds.c @@ -1392,18 +1392,18 @@ void quote1(char *initial, int argc, char **argv) { int i; - char buf[BUFSIZ]; /* must be >= sizeof(line) */ + char buf[BUFSIZ]; /* must be >= sizeof(line) */ strcpy_truncate(buf, initial, sizeof(buf)); for(i = 1; i < argc; i++) { if(i > 1) strcat_truncate(buf, " ", sizeof(buf)); strcat_truncate(buf, argv[i], sizeof(buf)); - } - if (command(buf) == PRELIM) { - while (getreply(0) == PRELIM) - continue; - } + } + if (command("%s", buf) == PRELIM) { + while (getreply(0) == PRELIM) + continue; + } } void