2
0
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:
namazso 2019-03-29 18:21:09 +00:00 committed by Dmitry Novikov
parent 89be2166ee
commit f6822e30ea

View File

@ -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);
}