Fixes #928 again. In scrollback replay, skip every line that starts 0x0d.

This commit is contained in:
RichardHitt 2014-04-17 09:53:09 -07:00
parent 2a2eafcf1d
commit b66edd372e

View File

@ -298,6 +298,10 @@ scrollback_load (session *sess)
{ {
char *buf_tmp; char *buf_tmp;
/* If nothing but funny trailing matter e.g. 0x0d or 0x0d0a, toss it */
if (n_bytes >= 1 && buf[0] == 0x0d)
continue;
n_bytes--; n_bytes--;
buf_tmp = buf; buf_tmp = buf;
buf = g_strndup (buf_tmp, n_bytes); buf = g_strndup (buf_tmp, n_bytes);