Commit fd78d7ca authored by kervala's avatar kervala

Changed: Exit if line is truncated

parent bcad6f89
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment