1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-12-21 23:28:51 -05:00

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;
/* 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);