aboutsummaryrefslogtreecommitdiff
path: root/debug.cpp
diff options
context:
space:
mode:
authorJames Brown2002-03-10 17:33:04 +0000
committerJames Brown2002-03-10 17:33:04 +0000
commit87ac8ae487a32f3e484846771b308bd548bc4814 (patch)
treec78be5f6357f3e3d91cfd7ecab0f5b7626419fa5 /debug.cpp
parent31dc24a037f9673441cf7a5295138b89c9d6d911 (diff)
downloadscummvm-rg350-87ac8ae487a32f3e484846771b308bd548bc4814.tar.gz
scummvm-rg350-87ac8ae487a32f3e484846771b308bd548bc4814.tar.bz2
scummvm-rg350-87ac8ae487a32f3e484846771b308bd548bc4814.zip
Apply some patches by syke to prevent buffer overruns, etc.
svn-id: r3723
Diffstat (limited to 'debug.cpp')
-rw-r--r--debug.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/debug.cpp b/debug.cpp
index e22a33af53..2938fd405b 100644
--- a/debug.cpp
+++ b/debug.cpp
@@ -110,7 +110,7 @@ bool ScummDebugger::do_command() {
return true;
case CMD_DUMPBOX:
{
- int num, i = 0, rows = 0;
+ int num, i = 0;
BoxCoords box;
byte *boxm = _s->getBoxMatrixBaseAddr();
num = _s->getNumBoxes();
@@ -206,11 +206,11 @@ static const DebuggerCommands debugger_commands[] = {
{ "a", 1, CMD_ACTOR },
{ "s", 1, CMD_SCRIPTS },
{ "r", 1, CMD_LOAD_ROOM },
- { "b", 1, CMD_DUMPBOX},
+ { "b", 1, CMD_DUMPBOX},
{ "v", 1, CMD_VAR},
{ "w", 1, CMD_WATCH},
{ "e", 1, CMD_EXIT },
- { 0, 0, 0 },
+ { "" , 0, 0 }
};
int ScummDebugger::get_command() {