mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
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:
parent
fce4227a91
commit
73aef81aca
1 changed files with 4 additions and 1 deletions
|
@ -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++)
|
||||
|
|
Loading…
Reference in a new issue