From: Markus Armbruster Date: Tue, 31 Aug 2004 17:53:34 +0000 (+0000) Subject: (xdprval): Fix for strings containing backslashes. X-Git-Tag: v4.2.18~13 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=4798d1466b71ac2740c62e3dbd5664ff13d4268e (xdprval): Fix for strings containing backslashes. --- diff --git a/src/lib/commands/xdump.c b/src/lib/commands/xdump.c index f6340db42..650d4a27e 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 != '"' && isprint(*e); ++e) ; + for (e = s; *e != '"' && *e != '\\' && isprint(*e); ++e) ; pr("%.*s", (int)(e-s), s); if (*e) pr("\\%03o", *e++);