- in the for-loop, search first start as initializer, this saves one unneccesary memcmp
- cr/lf detection: we need to do that _before_ the first mime content is evaluated.
}
- next_boundary = NULL;
- for (srch=ptr;
+ srch = next_boundary = NULL;
+ for (srch = memchr(ptr, '-', content_end - srch);
(srch != NULL) && (srch < content_end);
srch = memchr(srch, '-', content_end - srch))
{
ptr ++;
part_start = NULL;
do {
+ char *optr;
+ optr = ptr;
if (parse_MimeHeaders(SubMimeHeaders, &ptr, content_end) != 0)
break;
+ if ((ptr - optr > 2) &&
+ (*(ptr - 2) == '\r'))
+ crlf_in_use = 1;
+
part_start = ptr;
next_boundary = FindNextContent(ptr,