From 61b1a594b850846e959256dfb65f210be416d3eb Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Mon, 15 Apr 2013 18:49:00 +0200 Subject: GOB: Change strcpy to strlcpy for safety --- engines/gob/draw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/gob/draw.cpp') diff --git a/engines/gob/draw.cpp b/engines/gob/draw.cpp index 8c6919416d..e1322c2831 100644 --- a/engines/gob/draw.cpp +++ b/engines/gob/draw.cpp @@ -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); -- cgit v1.2.3