From 41edeb93f26ac42dfcfaf1fb5208dae50b8988f5 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Wed, 16 Apr 2014 14:31:51 -0700 Subject: [PATCH] GUAC-621: Only increase buffer length if real character data was written (not cleared). --- src/protocols/ssh/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocols/ssh/buffer.c b/src/protocols/ssh/buffer.c index 15fb6982..209338ef 100644 --- a/src/protocols/ssh/buffer.c +++ b/src/protocols/ssh/buffer.c @@ -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; }