aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2019-02-28 14:59:12 +0100
committerLeah Neukirchen <leah@vuxu.org>2019-02-28 14:59:12 +0100
commit11ae5504fdb230478cb259f8d600f824e81e8590 (patch)
tree2299daa987213ee766fbbf7074c02b28cbec2791
parent9dfbf48be43b25681ed61669897f4ab32e50cdec (diff)
downloadmblaze-11ae5504fdb230478cb259f8d600f824e81e8590.tar.gz
blaze822: blaze822_addr: don't read over the trailing nul byte when resolving \
-rw-r--r--blaze822.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blaze822.c b/blaze822.c
index ba962a8..1076c60 100644
--- a/blaze822.c
+++ b/blaze822.c
@@ -267,7 +267,7 @@ blaze822_addr(char *s, char **dispo, char **addro)
char *e = tok + sizeof tok;
s++;
while (*s && c < e && *s != '"') {
- if (*s == '\\')
+ if (*s == '\\' && *(s+1))
s++;
*c++ = *s++;
}