From c80a3e8c496d2ed8c1d8c61569fa7c3c2367cd86 Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 8 Jan 2003 09:15:56 +0000 Subject: [PATCH] We just got mailed a Dr Watson log which suggests I failed to initialise term->paste_len during initialisation, and indeed looking at the code confirms this. I'm puzzled as to why valgrind didn't spot this in pterm, though, since it's all in cross-platform code! git-svn-id: svn://svn.tartarus.org/sgt/putty@2494 cda61777-01e9-0310-a592-d414129be87e --- terminal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/terminal.c b/terminal.c index 02c94d74..1cdf098f 100644 --- a/terminal.c +++ b/terminal.c @@ -320,6 +320,7 @@ Terminal *term_init(Config *mycfg, void *frontend) strcpy(term->id_string, "\033[?6c"); term->last_blink = term->last_tblink = 0; term->paste_buffer = NULL; + term->paste_len = 0; term->last_paste = 0; bufchain_init(&term->inbuf); bufchain_init(&term->printer_buf); -- 2.11.0