aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--env.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/env.c b/env.c
index f4140881..cda43ea8 100644
--- a/env.c
+++ b/env.c
@@ -221,6 +221,11 @@ char *visbuf(const char *buf)
*tp++ = '\\'; *tp++ = '"';
buf++;
}
+ else if (*buf == '\\')
+ {
+ *tp++ = '\\'; *tp++ = '\\';
+ buf++;
+ }
else if (isprint(*buf) || *buf == ' ')
*tp++ = *buf++;
else if (*buf == '\n')