mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-28 15:45:46 +03:00
fix buffer overflow (#687)
This commit is contained in:
parent
89be2166ee
commit
f6822e30ea
@ -5833,7 +5833,7 @@ void EXT_FUNC SV_ActivateServer_internal(int runPhysics)
|
||||
if (mapchangecfgfile.string && *mapchangecfgfile.string)
|
||||
{
|
||||
AlertMessage(at_console, "Executing map change config file\n");
|
||||
Q_sprintf(szCommand, "exec %s\n", mapchangecfgfile.string);
|
||||
Q_snprintf(szCommand, sizeof(szCommand), "exec %s\n", mapchangecfgfile.string);
|
||||
Cbuf_AddText(szCommand);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user