aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/scripting
diff options
context:
space:
mode:
authorMarisa-Chan2014-12-19 17:18:46 +0600
committerMarisa-Chan2014-12-19 17:18:46 +0600
commit79f75059de9ef2530f8d1c043d97dafe8b8ffec8 (patch)
treede8084d540133800e3424291b6290e632862c356 /engines/zvision/scripting
parentfafbd425dc9f85e524a8222facdb0067632add84 (diff)
downloadscummvm-rg350-79f75059de9ef2530f8d1c043d97dafe8b8ffec8.tar.gz
scummvm-rg350-79f75059de9ef2530f8d1c043d97dafe8b8ffec8.tar.bz2
scummvm-rg350-79f75059de9ef2530f8d1c043d97dafe8b8ffec8.zip
ZVISION: Fix copy into fixed size buffer (CID 1257096)
Diffstat (limited to 'engines/zvision/scripting')
-rw-r--r--engines/zvision/scripting/controls/paint_control.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/zvision/scripting/controls/paint_control.cpp b/engines/zvision/scripting/controls/paint_control.cpp
index f06dee25ad..df06bb814e 100644
--- a/engines/zvision/scripting/controls/paint_control.cpp
+++ b/engines/zvision/scripting/controls/paint_control.cpp
@@ -69,7 +69,7 @@ PaintControl::PaintControl(ZVision *engine, uint32 key, Common::SeekableReadStre
} else if (param.matchString("eligible_objects", true)) {
char buf[256];
memset(buf, 0, 256);
- strcpy(buf, values.c_str());
+ strncpy(buf, values.c_str(), 255);
char *curpos = buf;
char *strend = buf + strlen(buf);