From 21c6fb74810f8f6b14b3143e73663c1adb472154 Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Sat, 19 Mar 2016 00:04:56 -0400 Subject: [PATCH] Fix substitution code so it uses the right pointer for the utf-8 test. --- uip/mhparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uip/mhparse.c b/uip/mhparse.c index 6f8ebaf1..1193d564 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -4334,7 +4334,7 @@ char *get_param_value(PM pm, char replace) } if (utf8) { for (++p, --inbytes; - inbytes > 0 && (((unsigned char) *q) & 0xc0) == 0x80; + inbytes > 0 && (((unsigned char) *p) & 0xc0) == 0x80; ++p, --inbytes) continue; } else { -- 2.56.0