aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-12-23 08:02:53 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-12-23 08:02:53 +0000
commitb1d579c21d332b02181e80a046b379350ce39771 (patch)
tree3ca862bc1d7b5e0fd44d9510baecab4ec9531211
parenta28c83880b11c987608194a75a0eb18130b276d3 (diff)
downloadfetchmail-b1d579c21d332b02181e80a046b379350ce39771.tar.gz
fetchmail-b1d579c21d332b02181e80a046b379350ce39771.tar.bz2
fetchmail-b1d579c21d332b02181e80a046b379350ce39771.zip
Handle literal backslashes properly.
svn path=/trunk/; revision=2677
-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')