Unbugger, really.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21160 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -242,12 +242,12 @@ sl_make_argv(char *line, int *ret_argc, char ***ret_argv)
|
|||||||
;
|
;
|
||||||
} else if (*p == '"') {
|
} else if (*p == '"') {
|
||||||
quote = !quote;
|
quote = !quote;
|
||||||
memmove(&p[0], &p[1], strlen(&p[1]));
|
memmove(&p[0], &p[1], strlen(&p[1]) + 1);
|
||||||
continue;
|
continue;
|
||||||
} else if (*p == '\\') {
|
} else if (*p == '\\') {
|
||||||
if (p[1] == '\0')
|
if (p[1] == '\0')
|
||||||
goto failed;
|
goto failed;
|
||||||
memmove(&p[0], &p[1], strlen(&p[1]));
|
memmove(&p[0], &p[1], strlen(&p[1]) + 1);
|
||||||
p += 2;
|
p += 2;
|
||||||
continue;
|
continue;
|
||||||
} else if (quote || !isspace((unsigned char)*p)) {
|
} else if (quote || !isspace((unsigned char)*p)) {
|
||||||
|
Reference in New Issue
Block a user