1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

fixed error reported on the list caused by my last change

* xmlstring.c: fixed error reported on the list caused by
  my last change
This commit is contained in:
William M. Brack
2004-08-31 16:49:26 +00:00
parent d1de4a3da9
commit f409515f15
3 changed files with 253 additions and 248 deletions

View File

@@ -773,7 +773,7 @@ xmlCheckUTF8(const unsigned char *utf)
* 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx valid 4-byte
*/
for (ix = 0; (c = utf[ix]);) { /* string is 0-terminated */
if (c & 0x80) { /* 1-byte code, starts with 10 */
if ((c & 0x80) == 0x00) { /* 1-byte code, starts with 10 */
ix++;
} else if ((c & 0xe0) == 0xc0) {/* 2-byte code, starts with 110 */
if ((utf[ix+1] & 0xc0 ) != 0x80)