This commit is contained in:
Juan Linietsky 2014-12-17 10:51:45 -03:00
commit bed3b7f092

View file

@ -34,7 +34,7 @@ VARIANT_ENUM_CAST(XMLParser::NodeType);
static bool _equalsn(const CharType* str1, const CharType* str2, int len) {
int i;
for(i=0; str1[i] && str2[i] && i < len; ++i)
for(i=0; i < len && str1[i] && str2[i] ; ++i)
if (str1[i] != str2[i])
return false;