]> granicus.if.org Git - libexpat/commitdiff
Fix for bug #1221160.
authorKarl Waclawek <kwaclaw@users.sourceforge.net>
Wed, 15 Jun 2005 14:24:26 +0000 (14:24 +0000)
committerKarl Waclawek <kwaclaw@users.sourceforge.net>
Wed, 15 Jun 2005 14:24:26 +0000 (14:24 +0000)
expat/lib/xmlparse.c

index e6f4105b94edab52e5eaf8d1bc580af1cc5aff43..99659b4a299d08fb239b07d5ef8bb4542b72cfb4 100644 (file)
@@ -2856,8 +2856,10 @@ storeAtts(XML_Parser parser, const ENCODING *enc,
         nsAtts[j].hash = uriHash;
         nsAtts[j].uriName = s;
 
-        if (!--nPrefixes)
+        if (!--nPrefixes) {
+          i += 2;
           break;
+        }
       }
       else  /* not prefixed */
         ((XML_Char *)s)[-1] = 0;  /* clear flag */