Requote strings that must have been quoted originally.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2938 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
f82d20e078
commit
3fa986dd55
|
@ -440,7 +440,14 @@ void Cmd_StuffCmds (void)
|
||||||
{
|
{
|
||||||
if (!com_argv[i])
|
if (!com_argv[i])
|
||||||
continue; // NEXTSTEP nulls out -NXHost
|
continue; // NEXTSTEP nulls out -NXHost
|
||||||
Q_strcat (text,com_argv[i]);
|
if (strchr(com_argv[i], ' ') || strchr(com_argv[i], '\t'))
|
||||||
|
{
|
||||||
|
Q_strcat (text,"\"");
|
||||||
|
Q_strcat (text,com_argv[i]);
|
||||||
|
Q_strcat (text,"\"");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
Q_strcat (text,com_argv[i]);
|
||||||
if (i != com_argc-1)
|
if (i != com_argc-1)
|
||||||
Q_strcat (text, " ");
|
Q_strcat (text, " ");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue