This isn't right: it'll add a period to the end, even when there was no

extension at all.  Remove it; it wasn't meant to be committed to begin
with.
This commit is contained in:
Glenn Maynard
2005-12-29 02:10:18 +00:00
parent 2985f1a6ec
commit 5303e7aab9
-8
View File
@@ -733,14 +733,6 @@ void MakeValidFilename( CString &sName )
}
sName = WStringToRString( wsName );
if( Basename(sName).size() > 128 )
{
/* The filename is too long. Truncate it, but leave the extension alone. */
const RString& sExt = GetExtension( sName );
sName = SetExtension( sName, "" );
sName.erase( 128 );
sName = sName + "." + sExt;
}
}
int g_argc = 0;