Core/Misc: Fix static analysis issues

This commit is contained in:
jackpoz
2017-02-25 17:07:22 +01:00
parent bb6b1e794f
commit 8f2bcd79da
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -180,7 +180,7 @@ uint32 ReadBuild(int locale)
size_t pos = text.find("version=\"");
size_t pos1 = pos + strlen("version=\"");
size_t pos2 = text.find("\"",pos1);
size_t pos2 = text.find('"',pos1);
if (pos == text.npos || pos2 == text.npos || pos1 >= pos2)
{
printf("Fatal error: Invalid %s file format!\n", filename.c_str());