From 7f19fe7e3f5b90d650261b39b1e0616d6af93afa Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Mon, 30 Nov 2009 08:21:38 +0000 Subject: [PATCH] Fix GTA installer. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3503 --- src/shell/shell.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shell/shell.cpp b/src/shell/shell.cpp index 3d317904..dd5108eb 100644 --- a/src/shell/shell.cpp +++ b/src/shell/shell.cpp @@ -283,6 +283,8 @@ void DOS_Shell::Run(void) { std::string line; if (cmd->FindStringRemain("/C",line)) { strcpy(input_line,line.c_str()); + char* sep = strpbrk(input_line,"\r\n"); //GTA installer + if (sep) *sep = 0; DOS_Shell temp; temp.echo = echo; temp.ParseLine(input_line); //for *.exe *.com |*.bat creates the bf needed by runinternal;