From 1d31c278e6234d9624d4698aef9c9e3da8ea8ee1 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Sat, 17 Jul 2010 12:37:02 +0000 Subject: SCI: Fix 'parse' debug command parameter handling svn-id: r50957 --- engines/sci/console.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]); } -- cgit v1.2.3