diff --git a/src/basic/gunicode.c b/src/basic/gunicode.c index 542110503f7..e6ac0545a4e 100644 --- a/src/basic/gunicode.c +++ b/src/basic/gunicode.c @@ -26,7 +26,7 @@ char * utf8_prev_char (const char *p) { - while (1) + for (;;) { p--; if ((*p & 0xc0) != 0x80)