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
1 changed files with 4 additions and 1 deletions

View File

@ -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;