Fix buffer overflow when sending game messages as chat

This commit is contained in:
Anders Jenbo 2021-09-25 06:28:04 +02:00
commit c6468522c8
2 changed files with 8 additions and 7 deletions

View file

@ -75,7 +75,7 @@ void SetSpellLevelCheat(spell_id spl, int spllvl)
void PrintDebugMonster(int m)
{
char dstr[128];
char dstr[MAX_SEND_STR_LEN];
auto &monster = Monsters[m];
@ -748,7 +748,7 @@ void GetDebugMonster()
void NextDebugMonster()
{
char dstr[128];
char dstr[MAX_SEND_STR_LEN];
DebugMonsterId++;
if (DebugMonsterId == MAXMONSTERS)