diff options
Diffstat (limited to 'engines/zvision')
-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); |