diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-08-25 08:27:47 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-08-25 08:27:47 +0300 |
commit | 33f71eb118c81e788cd64049d70c8f79e969f2ac (patch) | |
tree | 021d13b3d6dc30f449318ce1107247ff0973a2a8 | |
parent | c03ef263ed760700752957ab4dacee0220ad392e (diff) | |
download | dico-33f71eb118c81e788cd64049d70c8f79e969f2ac.tar.gz dico-33f71eb118c81e788cd64049d70c8f79e969f2ac.tar.bz2 |
Bugfix
* lib/utf8.c (utf8_iter0): Switch to error state if utf8_char_width
returned 0
-rw-r--r-- | lib/utf8.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1547,3 +1547,3 @@ utf8_iter0(struct utf8_iterator *itr) n = utf8_char_width(itr->curptr); - if (n > itr->length) { + if (n == 0 || n > itr->length) { itr->end = 1; |