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
This commit is contained in:
Ozkan Sezer 2010-02-16 10:10:58 +00:00
parent fce4227a91
commit 73aef81aca

View file

@ -1143,8 +1143,11 @@ void COM_InitArgv (int argc, char **argv)
break;
}
if (com_cmdline[n-1] = ' ')
com_cmdline[n-1] = 0; //johnfitz -- kill the trailing space
Con_Printf("\nCommand line: %s",com_cmdline);
safe = false;
for (com_argc=0 ; (com_argc<MAX_NUM_ARGVS) && (com_argc < argc) ; com_argc++)