diff options
Diffstat (limited to 'src/qcommon/cmd.c')
-rw-r--r-- | src/qcommon/cmd.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/qcommon/cmd.c b/src/qcommon/cmd.c index eb52e3f6..2968f708 100644 --- a/src/qcommon/cmd.c +++ b/src/qcommon/cmd.c @@ -416,6 +416,18 @@ void Cmd_ArgsBuffer( char *buffer, int bufferLength ) { /* ============ +Cmd_LiteralArgsBuffer + +The interpreted versions use this because +they can't have pointers returned to them +============ +*/ +void Cmd_LiteralArgsBuffer( char *buffer, int bufferLength ) { + Q_strncpyz( buffer, cmd_cmd, bufferLength ); +} + +/* +============ Cmd_Cmd Retrieve the unmodified command string @@ -451,6 +463,7 @@ void Cmd_TokenizeString( const char *text_in ) { // clear previous args cmd_argc = 0; + cmd_cmd[ 0 ] = '\0'; if ( !text_in ) { return; |