From b66edd372eeffdaa871d472e11bb0a408115fab0 Mon Sep 17 00:00:00 2001 From: RichardHitt Date: Thu, 17 Apr 2014 09:53:09 -0700 Subject: [PATCH] Fixes #928 again. In scrollback replay, skip every line that starts 0x0d. --- src/common/text.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/text.c b/src/common/text.c index cac76054..b6343f27 100644 --- a/src/common/text.c +++ b/src/common/text.c @@ -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);