aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2003-08-05 19:23:26 +0000
committerMax Horn2003-08-05 19:23:26 +0000
commite738b64bb1d693b0eb433d545cc985e141c7bae7 (patch)
tree65406b44bdeab94e20e1479e25dbf5f6290d44b4 /scumm
parentc99f6980c70ea60f5aba8f45a0384059f24deabc (diff)
downloadscummvm-rg350-e738b64bb1d693b0eb433d545cc985e141c7bae7.tar.gz
scummvm-rg350-e738b64bb1d693b0eb433d545cc985e141c7bae7.tar.bz2
scummvm-rg350-e738b64bb1d693b0eb433d545cc985e141c7bae7.zip
fix for debugger tab completion (thanks wjp)
svn-id: r9515
Diffstat (limited to 'scumm')
-rw-r--r--scumm/debugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/debugger.cpp b/scumm/debugger.cpp
index 7a860960ac..6551c64599 100644
--- a/scumm/debugger.cpp
+++ b/scumm/debugger.cpp
@@ -1062,7 +1062,7 @@ bool ScummDebugger::TabComplete(const char *input, char*& completion) {
completion = new char[matchlen+1];
memcpy(completion, match, matchlen);
- completion[matchlen+1] = 0;
+ completion[matchlen] = 0;
return true;
}