summaryrefslogtreecommitdiff
path: root/xmlstring.c
diff options
context:
space:
mode:
authorWilliam M. Brack <wbrack@src.gnome.org>2004-08-31 16:49:26 +0000
committerWilliam M. Brack <wbrack@src.gnome.org>2004-08-31 16:49:26 +0000
commitf409515f15f34811f319ca4d5d9ba77b525eda8c (patch)
tree2258598302cbb9290282a3d8f789b8e2f3e527a9 /xmlstring.c
parentd1de4a3da9e5364a37469108b932e5ad66055a5e (diff)
downloadlibxml2-f409515f15f34811f319ca4d5d9ba77b525eda8c.tar.gz
fixed error reported on the list caused by my last change
* xmlstring.c: fixed error reported on the list caused by my last change
Diffstat (limited to 'xmlstring.c')
-rw-r--r--xmlstring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlstring.c b/xmlstring.c
index 5f239df8..3617339e 100644
--- a/xmlstring.c
+++ b/xmlstring.c
@@ -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)