mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: client: console: fix uninitialized variable
This commit is contained in:
@@ -1276,6 +1276,7 @@ static void Field_DrawInputLine( int x, int y, const field_t *edit )
|
||||
const int drawLen = bound( 0, edit->widthInChars, sizeof( str ));
|
||||
const int cursorCharPos = bound( 0, edit->cursor - prestep, sizeof( str ));
|
||||
|
||||
str[0] = 0;
|
||||
Q_strncpy( str, edit->buffer + prestep, drawLen );
|
||||
|
||||
// draw it
|
||||
|
||||
Reference in New Issue
Block a user