From: Wilfried Goesgens Date: Sun, 12 Dec 2010 14:47:14 +0000 (+0100) Subject: Mimeparser Bugfix X-Git-Tag: v8.01~512 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=e9b97fce34309bcab49875e37547890d02ea3e47;hp=e7d127c4abfebc7202ebbf521e73cc5b6b5e8c5f;p=citadel.git Mimeparser Bugfix - use the right pointer to calculate the terminal border of the first memchr --- 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)) {