Sanitize the name with a maximum buffer size limit

This commit is contained in:
smallmodel 2024-12-08 12:51:14 +01:00 committed by GitHub
parent 5801af34bb
commit 333c452f44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 9 additions and 6 deletions

View file

@ -1155,7 +1155,7 @@ void Com_Init( char *commandLine );
void Com_Frame( void );
void Com_Shutdown( void );
qboolean Com_SanitizeName( const char *pszOldName, char *pszNewName );
qboolean Com_SanitizeName( const char *pszOldName, char *pszNewName, size_t bufferSize );
const char *Com_GetArchiveFileName( const char *filename, const char *extension );
const char *Com_GetArchiveFolder();
void Com_WipeSavegame( const char *savename );