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 4d48dc384b
commit 9229457dd4

View File

@ -194,7 +194,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;
}