fixed possible but unlikely overflow.
authorwsoltys <wiso@no.way>
Thu, 12 Sep 2013 19:23:45 +0000 (21:23 +0200)
committerwsoltys <wiso@no.way>
Tue, 1 Oct 2013 18:33:39 +0000 (20:33 +0200)
xbmc/guilib/LocalizeStrings.cpp

index 0acc669..d9f4b65 100644 (file)
@@ -175,7 +175,7 @@ bool CLocalizeStrings::LoadXML(const CStdString &filename, CStdString &encoding,
     const char* attrId=pChild->Attribute("id");
     if (attrId && !pChild->NoChildren())
     {
-      int id = atoi(attrId) + offset;
+      uint32_t id = atoi(attrId) + offset;
       if (m_strings.find(id) == m_strings.end())
         m_strings[id].strTranslated = ToUTF8(encoding, pChild->FirstChild()->Value());
     }