about summary refs log tree commit diff
path: root/rfc2045.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-13 20:50:48 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-13 20:50:48 +0200
commit42677a058610a6810ba569b01fc5ae7dbc36006c (patch)
treed681d8d3196a24a7eb3c9265b718bbe3169d7d35 /rfc2045.c
parentd0d371114c6cce9885d02bc185c65e83e95b94cb (diff)
downloadmblaze-42677a058610a6810ba569b01fc5ae7dbc36006c.tar.gz
mblaze-42677a058610a6810ba569b01fc5ae7dbc36006c.tar.xz
mblaze-42677a058610a6810ba569b01fc5ae7dbc36006c.zip
rfc2045: blaze822_multipart: \0 also terminates boundary
Diffstat (limited to 'rfc2045.c')
-rw-r--r--rfc2045.c2
1 files changed, 1 insertions, 1 deletions
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++;
 	}