From 0262aaf4647fbbed566bff6566cd586cf059d597 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 4 Sep 2004 08:15:33 +0000 Subject: [PATCH] (xdprval): Escape the space character so that a line can be simply split into fields at space. --- src/lib/commands/xdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/commands/xdump.c b/src/lib/commands/xdump.c index 543d3dbb9..89c288668 100644 --- a/src/lib/commands/xdump.c +++ b/src/lib/commands/xdump.c @@ -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++); -- 2.43.0