From e7d06d2bca2dd3d943287e550885ef766809464a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 10 Aug 2009 16:41:31 +0400 Subject: [PATCH] * Fix bug with parsing raw headers for messages that have mixed line ending style --- src/plugins/regexp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c index 3613b3f62..df5bba08a 100644 --- a/src/plugins/regexp.c +++ b/src/plugins/regexp.c @@ -244,7 +244,9 @@ find_raw_header_pos (const char *headers, const char *headerv) } } } - p ++; + if (*p != '\0') { + p ++; + } } return NULL; -- 2.39.5