]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/xdump.c
(xdprval): Escape the space character so that a line can be simply
[empserver] / 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++);