blaze822: compress_hdr: avoid stepping h too far

This resulted in the message consisting of the empty line to contain a
single header which consisted of only a space.
pull/117/head
Leah Neukirchen 6 years ago
parent 372450cd70
commit 35c11688eb

@ -342,7 +342,7 @@ compress_hdr(char *s, char *end)
while (h < end && *h) {
if (*h == '\n') {
*t++ = ' ';
while (*h && isfws(*h))
while (*h && isfws(*h) && *(h+1))
h++;
}
*t++ = *h++;

Loading…
Cancel
Save