Fix slashes for safety.

This commit is contained in:
Thad Ward
2003-09-01 11:21:12 +00:00
parent b24129130e
commit b01f17894c
+2
View File
@@ -79,6 +79,7 @@ bool Model::LoadFromModelFile( CString sPath )
bool Model::LoadMilkshapeAscii( CString sPath )
{
CString sDir, sThrowAway;
FixSlashesInPlace(sPath);
splitrelpath( sPath, sDir, sThrowAway, sThrowAway );
FILE *file = fopen (sPath, "rt");
@@ -444,6 +445,7 @@ bool Model::LoadMilkshapeAscii( CString sPath )
bool Model::LoadMilkshapeAsciiBones( CString sAniName, CString sPath )
{
CString sDir, sThrowAway;
FixSlashesInPlace(sPath);
splitrelpath( sPath, sDir, sThrowAway, sThrowAway );
FILE *file = fopen (sPath, "rt");