Fix buffer overflow when sending game messages as chat
This commit is contained in:
parent
7f6dec6dca
commit
c6468522c8
2 changed files with 8 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue