diff options
author | RichardHitt <rbh00@netcom.com> | 2014-04-17 09:53:09 -0700 |
---|---|---|
committer | RichardHitt <rbh00@netcom.com> | 2014-04-17 09:53:09 -0700 |
commit | b66edd372eeffdaa871d472e11bb0a408115fab0 (patch) | |
tree | 8179fe59ea0c79f3e197955d8a3586e712b134f1 /src | |
parent | 2a2eafcf1d969d29e1d8b6cc4a53574190383d11 (diff) |
Fixes #928 again. In scrollback replay, skip every line that starts 0x0d.
Diffstat (limited to 'src')
-rw-r--r-- | src/common/text.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |