aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Hesse2013-04-15 18:49:00 +0200
committerSven Hesse2013-04-15 18:49:00 +0200
commit61b1a594b850846e959256dfb65f210be416d3eb (patch)
tree490ff31f7af9a130f7adc040f216181cc6e21773
parentbbe4372f5b05e02b86b4609bf24b49f24f33a866 (diff)
downloadscummvm-rg350-61b1a594b850846e959256dfb65f210be416d3eb.tar.gz
scummvm-rg350-61b1a594b850846e959256dfb65f210be416d3eb.tar.bz2
scummvm-rg350-61b1a594b850846e959256dfb65f210be416d3eb.zip
GOB: Change strcpy to strlcpy for safety
-rw-r--r--engines/gob/draw.cpp2
1 files changed, 1 insertions, 1 deletions
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);