diff options
author | /dev/humancontroller <devhc@example.com> | 2015-06-08 14:41:57 +0200 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-03-09 13:51:08 +0100 |
commit | 6da44ba3d5497a30c1f5b13af38bc9fe991d06d2 (patch) | |
tree | 0fdcea3484c7317a03bb895b6d196b06986669f2 /src/qcommon/cmd.c | |
parent | cf75fd58b8bccaddbffa0bb791ea3287515dfee5 (diff) |
remove the crappy "argument sanitization" workaround
Diffstat (limited to 'src/qcommon/cmd.c')
-rw-r--r-- | src/qcommon/cmd.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/qcommon/cmd.c b/src/qcommon/cmd.c index 48489eff..7972d053 100644 --- a/src/qcommon/cmd.c +++ b/src/qcommon/cmd.c @@ -498,31 +498,6 @@ char *Cmd_Cmd(void) } /* - Replace command separators with space to prevent interpretation - This is a hack to protect buggy qvms - https://bugzilla.icculus.org/show_bug.cgi?id=3593 - https://bugzilla.icculus.org/show_bug.cgi?id=4769 -*/ - -void Cmd_Args_Sanitize(void) -{ - int i; - - for(i = 1; i < cmd.argc; i++) - { - char *c = cmd.argv[i]; - - if(strlen(c) > MAX_CVAR_VALUE_STRING - 1) - c[MAX_CVAR_VALUE_STRING - 1] = '\0'; - - while ((c = strpbrk(c, "\n\r;"))) { - *c = ' '; - ++c; - } - } -} - -/* ============ Cmd_TokenizeString |