GUAC-621: Only increase buffer length if real character data was written (not cleared).

This commit is contained in:
Michael Jumper 2014-04-16 14:31:51 -07:00
parent e226a7aae0
commit 41edeb93f2

View File

@ -207,7 +207,7 @@ void guac_terminal_buffer_set_columns(guac_terminal_buffer* buffer, int row,
*(current++) = *character;
/* Update length depending on row written */
if (row >= buffer->length)
if (character->value != 0 && row >= buffer->length)
buffer->length = row+1;
}