diff options
author | James Brown | 2002-03-10 17:33:04 +0000 |
---|---|---|
committer | James Brown | 2002-03-10 17:33:04 +0000 |
commit | 87ac8ae487a32f3e484846771b308bd548bc4814 (patch) | |
tree | c78be5f6357f3e3d91cfd7ecab0f5b7626419fa5 /debug.cpp | |
parent | 31dc24a037f9673441cf7a5295138b89c9d6d911 (diff) | |
download | scummvm-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.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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() { |