We just got mailed a Dr Watson log which suggests I failed to
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 8 Jan 2003 09:15:56 +0000 (09:15 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 8 Jan 2003 09:15:56 +0000 (09:15 +0000)
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

index 02c94d7..1cdf098 100644 (file)
@@ -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);