From 4798d1466b71ac2740c62e3dbd5664ff13d4268e Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Tue, 31 Aug 2004 17:53:34 +0000 Subject: [PATCH] (xdprval): Fix for strings containing backslashes. --- 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 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++); -- 2.43.0