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

index bb15cc6c4194901d953fd7414b087fcd2f532737..09e1f3324bd547b0d63059d9c8a2c6b94e7287cd 100644 (file)
@@ -607,7 +607,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 = '?';