From 42677a058610a6810ba569b01fc5ae7dbc36006c Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Wed, 13 Jul 2016 20:50:48 +0200 Subject: rfc2045: blaze822_multipart: \0 also terminates boundary --- rfc2045.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rfc2045.c') diff --git a/rfc2045.c b/rfc2045.c index e2e8658..eb23d0c 100644 --- a/rfc2045.c +++ b/rfc2045.c @@ -88,7 +88,7 @@ blaze822_multipart(struct message *msg, struct message **imsg) // bcharsnospace := DIGIT / ALPHA / "'" / "(" / ")" / // "+" / "_" / "," / "-" / "." / // "/" / ":" / "=" / "?" - while(!iswsp(*e) && *e != ';') + while (*e && !iswsp(*e) && *e != ';') e++; e++; } -- cgit 1.4.1