diff options
author | Torbjörn Andersson | 2014-08-06 17:32:19 +0200 |
---|---|---|
committer | Torbjörn Andersson | 2014-08-06 17:34:43 +0200 |
commit | e8cb2a37bdecc8c52cd4fa53e8f4612ec5be9d5a (patch) | |
tree | 30691c52c2e46c592f61e0e220757ce468adc1c7 /engines/zvision/scripting/controls | |
parent | ea2ee4ada7a55ba4b4e65eaa649464f4b4242b01 (diff) | |
download | scummvm-rg350-e8cb2a37bdecc8c52cd4fa53e8f4612ec5be9d5a.tar.gz scummvm-rg350-e8cb2a37bdecc8c52cd4fa53e8f4612ec5be9d5a.tar.bz2 scummvm-rg350-e8cb2a37bdecc8c52cd4fa53e8f4612ec5be9d5a.zip |
ZVISION: Silence Cppcheck warnings about buffer overflow
I don't know if it's the buffer sizes or the format strings that
should be fixed, but increasing the buffer size seems like the safer
thing to do in cases of doubt.
Diffstat (limited to 'engines/zvision/scripting/controls')
-rw-r--r-- | engines/zvision/scripting/controls/input_control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/zvision/scripting/controls/input_control.cpp b/engines/zvision/scripting/controls/input_control.cpp index 5cf5086691..a35548d02e 100644 --- a/engines/zvision/scripting/controls/input_control.cpp +++ b/engines/zvision/scripting/controls/input_control.cpp @@ -75,7 +75,7 @@ InputControl::InputControl(ZVision *engine, uint32 key, Common::SeekableReadStre } else if (line.matchString("*next_tabstop*", true)) { sscanf(line.c_str(), "%*[^(](%u)", &_nextTabstop); } else if (line.matchString("*cursor_animation*", true)) { - char fileName[25]; + char fileName[26]; sscanf(line.c_str(), "%*[^(](%25s %*u)", fileName); |