mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 14:51:40 +00:00
INSANE: Fix potential buffer overflow. CID 1003866
This commit is contained in:
parent
71a1c0a27f
commit
095dfcad15
@ -466,7 +466,7 @@ void Insane::init_enemyStruct(int n, int32 handler, int32 initializer,
|
||||
_enemy[n].isEmpty = isEmpty;
|
||||
_enemy[n].weapon = weapon;
|
||||
_enemy[n].sound = sound;
|
||||
strncpy(_enemy[n].filename, filename, 20);
|
||||
Common::strlcpy(_enemy[n].filename, filename, 20);
|
||||
_enemy[n].costume4 = costume4;
|
||||
_enemy[n].costume6 = costume6;
|
||||
_enemy[n].costume5 = costume5;
|
||||
|
Loading…
x
Reference in New Issue
Block a user