projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix blind list alias expansion
[mmh]
/
sbr
/
fmt_rfc2047.c
diff --git
a/sbr/fmt_rfc2047.c
b/sbr/fmt_rfc2047.c
index
4145139
..
687ea57
100644
(file)
--- 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) {
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--;
inbytes--;
+ }
} else
start++, inbytes--;
if (start >= q)
} else
start++, inbytes--;
if (start >= q)