]> diplodocus.org Git - nmh/commitdiff
Fix substitution code so it uses the right pointer for the utf-8 test.
authorKen Hornstein <kenh@pobox.com>
Sat, 19 Mar 2016 04:04:56 +0000 (00:04 -0400)
committerKen Hornstein <kenh@pobox.com>
Sat, 19 Mar 2016 04:04:56 +0000 (00:04 -0400)
uip/mhparse.c

index 6f8ebaf1e6d102ed37df87fadcba7404a6e027fc..1193d5648cc75216b1e42a5be0a4b5755922dde9 100644 (file)
@@ -4334,7 +4334,7 @@ char *get_param_value(PM pm, char replace)
            }
            if (utf8) {
                for (++p, --inbytes;
            }
            if (utf8) {
                for (++p, --inbytes;
-                    inbytes > 0 && (((unsigned char) *q) & 0xc0) == 0x80;
+                    inbytes > 0 && (((unsigned char) *p) & 0xc0) == 0x80;
                     ++p, --inbytes)
                    continue;
            } else {
                     ++p, --inbytes)
                    continue;
            } else {