aboutsummaryrefslogtreecommitdiffstats
path: root/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'env.c')
-rw-r--r--env.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/env.c b/env.c
index 67679d19..3e86ac45 100644
--- a/env.c
+++ b/env.c
@@ -97,7 +97,12 @@ char *visbuf(const char *buf)
while (*buf)
{
- if (isprint(*buf) || *buf == ' ')
+ if (*buf == '"')
+ {
+ *tp++ = '\\'; *tp++ = '"';
+ buf++;
+ }
+ else if (isprint(*buf) || *buf == ' ')
*tp++ = *buf++;
else if (*buf == '\n')
{