mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Sanitize the name with a maximum buffer size limit
This commit is contained in:
parent
5801af34bb
commit
333c452f44
5 changed files with 9 additions and 6 deletions
|
@ -2580,7 +2580,7 @@ void CL_CheckUserinfo( void ) {
|
|||
// send a reliable userinfo update if needed
|
||||
if(cvar_modifiedFlags & CVAR_USERINFO)
|
||||
{
|
||||
if (Com_SanitizeName(name->string, szSanitizedName)) {
|
||||
if (Com_SanitizeName(name->string, szSanitizedName, sizeof(szSanitizedName))) {
|
||||
Cvar_Set("name", szSanitizedName);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue