about summary refs log tree commit diff
path: root/rfc2047.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2023-03-16 19:54:46 +0100
committerLeah Neukirchen <leah@vuxu.org>2023-03-16 19:54:46 +0100
commit1838158ef19d489e554b3460059fba47d26ba145 (patch)
treeb4e446f1bb93665cf574ef25bc40725969e66775 /rfc2047.c
parentcccf01cb9aa45769e2e9d41c1e8e98a6502a98e0 (diff)
downloadmblaze-1838158ef19d489e554b3460059fba47d26ba145.tar.gz
mblaze-1838158ef19d489e554b3460059fba47d26ba145.tar.xz
mblaze-1838158ef19d489e554b3460059fba47d26ba145.zip
blaze822_priv.h: use proper lc/uc
Mail headers may contain characters where the simple definition breaks,
which results in wrong formatting on output.

Fixes #235.
Diffstat (limited to 'rfc2047.c')
-rw-r--r--rfc2047.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rfc2047.c b/rfc2047.c
index 3074b4d..5aec546 100644
--- a/rfc2047.c
+++ b/rfc2047.c
@@ -201,7 +201,8 @@ blaze822_decode_rfc2047(char *dst, char *src, size_t dlen, char *tgtenc)
 		if (ic == (iconv_t)-1)
 			goto nocode;
 
-		char enc = lc(*e++);
+		char enc = lc(*e);
+		e++;
 		if (*e++ != '?')
 			goto nocode;
 		char *start = e;