From 73aef81acafc65ae78120dbc2f043b931123d811 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Tue, 16 Feb 2010 10:10:58 +0000 Subject: [PATCH] common.c (COM_InitArgv): remove the trailing whitespace added at the end of cmdline string only if there is one. print out the command line as an informational message. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@19 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/common.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Quake/common.c b/Quake/common.c index 687c2d63..5246d542 100644 --- a/Quake/common.c +++ b/Quake/common.c @@ -1143,7 +1143,10 @@ void COM_InitArgv (int argc, char **argv) break; } - com_cmdline[n-1] = 0; //johnfitz -- kill the trailing space + if (com_cmdline[n-1] = ' ') + com_cmdline[n-1] = 0; //johnfitz -- kill the trailing space + + Con_Printf("\nCommand line: %s",com_cmdline); safe = false;