diff --git a/src/HeaderParser.c b/src/HeaderParser.c index b12171f..6d754ab 100644 --- a/src/HeaderParser.c +++ b/src/HeaderParser.c @@ -396,18 +396,19 @@ HeaderParse(Stream * stream, HeaderExpr * expr) return; } - if (c == '\n' && pC != '\\') + if (c == '\n') { - expr->data.text[i] = '\0'; expr->state.lineNo++; - break; - } - else - { - expr->data.text[i] = c; - i++; + if (pC != '\\') + { + expr->data.text[i] = '\0'; + break; + } } + expr->data.text[i] = c; + i++; + pC = c; } }