At last, a fix for `large-clipboard-crash'.
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 19 Feb 2006 01:37:45 +0000 (01:37 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 19 Feb 2006 01:37:45 +0000 (01:37 +0000)
commit55fb297890fbd83482db2d2516a9392befb3eb21
tree73807dbeef9a3fa5ef03c9c3c8e604c67aa49fb7
parent9a9a84cfc8941c3f5b5c23cbac1ebb2c33c26328
At last, a fix for `large-clipboard-crash'.
A growable buffer was only being grown for actual text, not for newlines or
trailing NULs. A large run of empty lines could lead to newlines overflowing
the buffer (> 100 should be enough to guarantee this on all platforms, after
the initial 5k size of the buffer).

Also fix some valgrind in the same area (was probably harmless), and a memory
leak introduced by the RTF attribute pasting.

git-svn-id: svn://svn.tartarus.org/sgt/putty@6570 cda61777-01e9-0310-a592-d414129be87e
terminal.c