X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffmt_rfc2047.c;h=687ea5774913c079f72389e96dfd16ed7287a347;hp=414513985a1a3d7a8d2ac7de4454bbee62dd9ef2;hb=1afb651874175658357df5a065ebcf49ee28705f;hpb=d40c61859f24a638a770fff091630e5f1f22de2c diff --git a/sbr/fmt_rfc2047.c b/sbr/fmt_rfc2047.c index 4145139..687ea57 100644 --- a/sbr/fmt_rfc2047.c +++ b/sbr/fmt_rfc2047.c @@ -318,8 +318,12 @@ decode_rfc2047(char *str, char *dst, size_t dstlen) break; /* skip to next input character */ if (fromutf8) { - for (start++;(start < q) && ((*start & 192) == 128);start++) + inbytes--; + start++; + while ((start < q) && ((*start & 192) == 128)) { + start++; inbytes--; + } } else start++, inbytes--; if (start >= q)