(xdprval): Escape the space character so that a line can be simply

split into fields at space.
This commit is contained in:
Markus Armbruster 2004-09-04 08:15:33 +00:00
parent d89c268b8b
commit 0262aaf464

View file

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