GOB: Change strcpy to strlcpy for safety

This commit is contained in:
Sven Hesse 2013-04-15 18:49:00 +02:00
parent bbe4372f5b
commit 61b1a594b8

View File

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