(quote1): fix % quoting bug

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5141 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1998-09-01 14:56:31 +00:00
parent 4de2a1b587
commit 8c7b6af353

View File

@@ -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