aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2010-07-17 12:37:02 +0000
committerWillem Jan Palenstijn2010-07-17 12:37:02 +0000
commit1d31c278e6234d9624d4698aef9c9e3da8ea8ee1 (patch)
tree7031a11511d74d6270203115408cfa98182c130a
parente000d2865450090d28f6a72608b963ece6435d4a (diff)
downloadscummvm-rg350-1d31c278e6234d9624d4698aef9c9e3da8ea8ee1.tar.gz
scummvm-rg350-1d31c278e6234d9624d4698aef9c9e3da8ea8ee1.tar.bz2
scummvm-rg350-1d31c278e6234d9624d4698aef9c9e3da8ea8ee1.zip
SCI: Fix 'parse' debug command parameter handling
svn-id: r50957
-rw-r--r--engines/sci/console.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp
index f04954f631..0fec80fe1c 100644
--- a/engines/sci/console.cpp
+++ b/engines/sci/console.cpp
@@ -1176,8 +1176,9 @@ bool Console::cmdParse(int argc, const char **argv) {
char string[1000];
// Construct the string
- strcpy(string, argv[2]);
+ strcpy(string, argv[1]);
for (int i = 2; i < argc; i++) {
+ strcat(string, " ");
strcat(string, argv[i]);
}