]> git.pond.sub.org Git - empserver/commitdiff
Fix parse() not to filter out tab from quoted arguments
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 20 Jul 2008 15:01:18 +0000 (11:01 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Fri, 25 Jul 2008 12:16:38 +0000 (08:16 -0400)
Broken in commit 2cc44bb1, v4.2.21.

src/lib/gen/parse.c

index 58aae3688339a6836bf7ba5d12caecdf1e1f823f..c9b8b7002a78800c2810db37e0b0939c455b4c86 100644 (file)
@@ -87,7 +87,7 @@ parse(char *buf, char *space, char **arg,
        for (; *buf && (quoted || !isspace(*(unsigned char *)buf)); buf++) {
            if (*buf == '"')
                quoted = !quoted;
-           else if (*buf >= 0x20 && *buf <= 0x7e)
+           else if ((*buf >= 0x20 && *buf <= 0x7e) || *buf == '\t')
                *space++ = *buf;
            /* else funny character; ignore */
        }