From: Ken Hornstein Date: Sat, 19 Mar 2016 04:04:56 +0000 (-0400) Subject: Fix substitution code so it uses the right pointer for the utf-8 test. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/21c6fb74810f8f6b14b3143e73663c1adb472154?ds=sidebyside;hp=2885665e14e1ca0aaac7d9809be4783b92b4d8d9 Fix substitution code so it uses the right pointer for the utf-8 test. --- 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 {