blaze822: blaze822_addr: don't read over the trailing nul byte when resolving \

pull/163/head
Leah Neukirchen 5 years ago
parent 9dfbf48be4
commit 11ae5504fd

@ -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++;
}

Loading…
Cancel
Save