mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 11:35:05 +08:00
engine: common: fix char array underflow, on Q_strlen() - 1
This commit is contained in:
@@ -1199,6 +1199,9 @@ void Con_CompleteCommand( field_t *field, qboolean print_suggestions )
|
||||
// setup the completion field
|
||||
con.completionField = field;
|
||||
|
||||
if( COM_StringEmpty( con.completionField->buffer ))
|
||||
return;
|
||||
|
||||
// only look at the first token for completion purposes
|
||||
Cmd_TokenizeString( con.completionField->buffer );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user