diff options
Diffstat (limited to 'env.c')
-rw-r--r-- | env.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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') { |