about summary refs log tree commit diff
diff options
context:
space:
mode:
-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++;
 	}