Changed: Exit if line is truncated

--HG--
branch : develop
This commit is contained in:
kervala 2017-01-04 14:24:25 +01:00
parent 5af01c7e24
commit 9541e78219

View file

@ -332,6 +332,12 @@ int main(int argc, char **argv)
std::string line(buffer);
if (line.size() > 1022)
{
nlwarning("More than 1022 bytes on a line!");
return 1;
}
if (line.size() < 3) continue;
// texture coordinate