game/server: fix some Asan issues

This commit is contained in:
nillerusr
2022-07-29 04:34:23 +03:00
parent d1ac11a5c7
commit 9c2c7e3529
4 changed files with 34 additions and 3 deletions
+3
View File
@@ -2019,6 +2019,9 @@ bool V_StripLastDir( char *dirName, int maxlen )
//-----------------------------------------------------------------------------
const char * V_UnqualifiedFileName( const char * in )
{
if( !in || !in[0] )
return in;
// back up until the character after the first path separator we find,
// or the beginning of the string
const char * out = in + strlen( in ) - 1;