diff --git a/engine/client/console.c b/engine/client/console.c index 6c7bf002..5f33e61a 100644 --- a/engine/client/console.c +++ b/engine/client/console.c @@ -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