diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1999-12-23 08:02:53 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1999-12-23 08:02:53 +0000 |
commit | b1d579c21d332b02181e80a046b379350ce39771 (patch) | |
tree | 3ca862bc1d7b5e0fd44d9510baecab4ec9531211 | |
parent | a28c83880b11c987608194a75a0eb18130b276d3 (diff) | |
download | fetchmail-b1d579c21d332b02181e80a046b379350ce39771.tar.gz fetchmail-b1d579c21d332b02181e80a046b379350ce39771.tar.bz2 fetchmail-b1d579c21d332b02181e80a046b379350ce39771.zip |
Handle literal backslashes properly.
svn path=/trunk/; revision=2677
-rw-r--r-- | env.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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') |