Fixed check_utf8

This commit is contained in:
Vysheng 2014-09-10 21:36:05 +04:00
parent 01ea879687
commit b4564eed7a

View File

@ -335,7 +335,7 @@ static int valid_utf8_char (const char *str) {
int i; int i;
for (i = 0; i < n; i ++) { for (i = 0; i < n; i ++) {
if ((((unsigned char)(str[i])) & 0xc0) != 0x80) { if ((((unsigned char)(str[i + 1])) & 0xc0) != 0x80) {
return -1; return -1;
} }
} }