mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
fix address sanitizer issues
This commit is contained in:
@@ -502,7 +502,7 @@ void SplitFileComponents( char const *pFileName, char *pDirOut, char *pBaseOut,
|
||||
|
||||
if ( !pDirOut[0] )
|
||||
strcpy( pDirOut, " " ); // blank dir name
|
||||
V_strcpy( pBaseOut, V_UnqualifiedFileName( pFileName ) );
|
||||
V_strncpy( pBaseOut, V_UnqualifiedFileName( pFileName ), MAX_PATH );
|
||||
char *pDot = strrchr( pBaseOut, '.' );
|
||||
if ( pDot )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user