]> git.pond.sub.org Git - empserver/commitdiff
(xdprval): Escape the space character so that a line can be simply
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 4 Sep 2004 08:15:33 +0000 (08:15 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 4 Sep 2004 08:15:33 +0000 (08:15 +0000)
split into fields at space.

src/lib/commands/xdump.c

index 543d3dbb9064775e9f583d9d2208583dc8c36041..89c288668c5687afc9896a982e3dbc8780750d38 100644 (file)
@@ -307,7 +307,7 @@ xdprval(struct valstr *val, char *sep)
        if (s) {
            pr("%s\"", sep);
            while (*s) {
-               for (e = s; *e != '"' && *e != '\\' && isprint(*e); ++e) ;
+               for (e = s; *e != '"' && *e != '\\' && isgraph(*e); ++e) ;
                pr("%.*s", (int)(e-s), s);
                if (*e)
                    pr("\\%03o", *e++);