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
1 changed files with 4 additions and 0 deletions

View File

@ -298,6 +298,10 @@ scrollback_load (session *sess)
{
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--;
buf_tmp = buf;
buf = g_strndup (buf_tmp, n_bytes);