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

index 14bf2ff9e856f94027c5af4f1dd225c8ebba9a52..f39bd999cba00c75e2f00b6264a5eb58069c5c17 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 = '?';