From b4564eed7a7bf8747e7c697e03a79ff8dd9b6a34 Mon Sep 17 00:00:00 2001 From: Vysheng Date: Wed, 10 Sep 2014 21:36:05 +0400 Subject: [PATCH] Fixed check_utf8 --- auto-static.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto-static.c b/auto-static.c index 8ed8624..2e883ce 100644 --- a/auto-static.c +++ b/auto-static.c @@ -335,7 +335,7 @@ static int valid_utf8_char (const char *str) { int i; for (i = 0; i < n; i ++) { - if ((((unsigned char)(str[i])) & 0xc0) != 0x80) { + if ((((unsigned char)(str[i + 1])) & 0xc0) != 0x80) { return -1; } }