engine: client: console: fix uninitialized variable

This commit is contained in:
Alibek Omarov
2025-07-09 19:04:59 +05:00
parent 40dfd2e711
commit 6cc3bed60a

View File

@@ -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