diff options
author | Marisa-Chan | 2014-12-19 17:18:11 +0600 |
---|---|---|
committer | Marisa-Chan | 2014-12-19 17:18:11 +0600 |
commit | fafbd425dc9f85e524a8222facdb0067632add84 (patch) | |
tree | 8178b95091f3e330cde401dc02cdf0d78b5ba2a7 | |
parent | 3806aa44186e4ce383697f6cb2fed8a23042020b (diff) | |
download | scummvm-rg350-fafbd425dc9f85e524a8222facdb0067632add84.tar.gz scummvm-rg350-fafbd425dc9f85e524a8222facdb0067632add84.tar.bz2 scummvm-rg350-fafbd425dc9f85e524a8222facdb0067632add84.zip |
ZVISION: Fix copy into fixed size buffer (CID 1257095)
-rw-r--r-- | engines/zvision/scripting/controls/slot_control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/zvision/scripting/controls/slot_control.cpp b/engines/zvision/scripting/controls/slot_control.cpp index 5228ba517b..42b54a9ab5 100644 --- a/engines/zvision/scripting/controls/slot_control.cpp +++ b/engines/zvision/scripting/controls/slot_control.cpp @@ -76,7 +76,7 @@ SlotControl::SlotControl(ZVision *engine, uint32 key, Common::SeekableReadStream } 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); |