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:
Spoike 2008-03-14 11:52:09 +00:00
parent f82d20e078
commit 3fa986dd55
1 changed files with 8 additions and 1 deletions

View File

@ -440,7 +440,14 @@ void Cmd_StuffCmds (void)
{
if (!com_argv[i])
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)
Q_strcat (text, " ");
}