From e9b97fce34309bcab49875e37547890d02ea3e47 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sun, 12 Dec 2010 15:47:14 +0100 Subject: [PATCH] Mimeparser Bugfix - use the right pointer to calculate the terminal border of the first memchr --- libcitadel/lib/mime_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcitadel/lib/mime_parser.c b/libcitadel/lib/mime_parser.c index 24b764779..b4c61a596 100644 --- a/libcitadel/lib/mime_parser.c +++ b/libcitadel/lib/mime_parser.c @@ -543,7 +543,7 @@ static char *FindNextContent(char *ptr, srch = next_boundary = NULL; - for (srch = memchr(ptr, '-', content_end - srch); + for (srch = memchr(ptr, '-', content_end - ptr); (srch != NULL) && (srch < content_end); srch = memchr(srch, '-', content_end - srch)) { -- 2.30.2