about summary refs log tree commit diff
path: root/rfc2047.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-29 11:51:08 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-29 12:54:03 +0200
commit525233811c0f7c9358c5b12c6f7ceecf5bfe7d96 (patch)
treebc4de1d0ccc245626dea11a28e21227be22258ad /rfc2047.c
parent9336bc9939e970c6e98fa66c13b221c8929d9e19 (diff)
downloadmblaze-525233811c0f7c9358c5b12c6f7ceecf5bfe7d96.tar.gz
mblaze-525233811c0f7c9358c5b12c6f7ceecf5bfe7d96.tar.xz
mblaze-525233811c0f7c9358c5b12c6f7ceecf5bfe7d96.zip
rfc2047: allow empty encoded-words
This is non-conforming, but happens in the wild occasionally.
Diffstat (limited to 'rfc2047.c')
-rw-r--r--rfc2047.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rfc2047.c b/rfc2047.c
index d5ecde2..63c4468 100644
--- a/rfc2047.c
+++ b/rfc2047.c
@@ -164,7 +164,7 @@ blaze822_decode_rfc2047(char *dst, char *src, size_t dlen, char *tgtenc)
 		char enc = lc(*e++);
 		if (*e++ != '?')
 			goto nocode;
-		char *start = e++;
+		char *start = e;
 		char *stop = strstr(e, "?=");
 		if (!stop)
 			goto nocode;