mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-21 11:41:25 +00:00
GOB: Change strcpy to strlcpy for safety
This commit is contained in:
parent
bbe4372f5b
commit
61b1a594b8
@ -488,7 +488,7 @@ void Draw::oPlaytoons_sub_F_1B(uint16 id, int16 left, int16 top, int16 right, in
|
||||
int16 width;
|
||||
char tmpStr[128];
|
||||
|
||||
strcpy(tmpStr, paramStr);
|
||||
Common::strlcpy(tmpStr, paramStr, 128);
|
||||
adjustCoords(1, &left, &top);
|
||||
adjustCoords(1, &right, &bottom);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user