]> granicus.if.org Git - php/commitdiff
fix typo
authorRasmus Lerdorf <rasmus@php.net>
Wed, 30 Jan 2008 08:52:17 +0000 (08:52 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Wed, 30 Jan 2008 08:52:17 +0000 (08:52 +0000)
ext/xml/xml.c

index f605778ce9626700e709d1f227c82074fa58ef31..52d0a234d5bd7d7d4e174b7b7109ed75c811ee99 100644 (file)
@@ -595,7 +595,7 @@ PHPAPI char *xml_utf8_decode(const XML_Char *s, int len, int *newlen, const XML_
                        s += 3;
                        pos -= 3;
                } else if (c >= 0xc0) { /* two bytes encoded, 11 bits */
-                       if(pos-3 >= 0) {
+                       if(pos-2 >= 0) {
                                c = ((s[0]&63)<<6) | (s[1]&63);
                        } else {
                                c = '?';