Fix sscanf() overflow issues.

This commit is contained in:
Steve Checkoway
2006-07-24 09:57:13 +00:00
parent e80defc8df
commit ff3b8bacbc
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ void RageModelGeometry::LoadMilkshapeAscii( const RString& _sPath, bool bNeedsNo
THROW;
// mesh: name, flags, material index
if( sscanf (sLine, "\"%[^\"]\" %d %d",szName, &nFlags, &nIndex) != 3 )
if( sscanf (sLine, "\"%31[^\"]\" %d %d",szName, &nFlags, &nIndex) != 3 )
THROW;
mesh.sName = szName;