mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-17 09:07:54 +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)
|
if (mapchangecfgfile.string && *mapchangecfgfile.string)
|
||||||
{
|
{
|
||||||
AlertMessage(at_console, "Executing map change config file\n");
|
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);
|
Cbuf_AddText(szCommand);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user