Fix parse() not to filter out tab from quoted arguments
Broken in commit 2cc44bb1
, v4.2.21.
This commit is contained in:
parent
022b73d8a1
commit
90ba9608cb
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ parse(char *buf, char *space, char **arg,
|
||||||
for (; *buf && (quoted || !isspace(*(unsigned char *)buf)); buf++) {
|
for (; *buf && (quoted || !isspace(*(unsigned char *)buf)); buf++) {
|
||||||
if (*buf == '"')
|
if (*buf == '"')
|
||||||
quoted = !quoted;
|
quoted = !quoted;
|
||||||
else if (*buf >= 0x20 && *buf <= 0x7e)
|
else if ((*buf >= 0x20 && *buf <= 0x7e) || *buf == '\t')
|
||||||
*space++ = *buf;
|
*space++ = *buf;
|
||||||
/* else funny character; ignore */
|
/* else funny character; ignore */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue