From e8cb2a37bdecc8c52cd4fa53e8f4612ec5be9d5a Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Wed, 6 Aug 2014 17:32:19 +0200 Subject: 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. --- engines/zvision/scripting/controls/input_control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/zvision/scripting/controls/input_control.cpp') 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); -- cgit v1.2.3