Skip to content
This repository
Browse code

Merge pull request #3135 from Karlson2k/xbmctinyxml_fix_01

Fix simple but significant bug in parsing XML files
  • Loading branch information...
commit 14e999c2cee608e67e2223db16a3129be0247b21 2 parents 7695d28 + 3d9bcfa
Martijn Kaijser authored August 23, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  xbmc/utils/XBMCTinyXML.cpp
2  xbmc/utils/XBMCTinyXML.cpp
@@ -122,7 +122,7 @@ const char *CXBMCTinyXML::Parse(CStdString &data, TiXmlParsingData *prevData, Ti
122 122
   re.RegComp("^&(amp|lt|gt|quot|apos|#x[a-fA-F0-9]{1,4}|#[0-9]{1,5});.*");
123 123
   while ((pos = data.find("&", pos)) != CStdString::npos)
124 124
   {
125  
-    CStdString tmp = data.substr(pos, pos + MAX_ENTITY_LENGTH);
  125
+    CStdString tmp = data.substr(pos, MAX_ENTITY_LENGTH);
126 126
     if (re.RegFind(tmp) < 0)
127 127
       data.insert(pos + 1, "amp;");
128 128
     pos++;

0 notes on commit 14e999c

Please sign in to comment.
Something went wrong with that request. Please try again.