Tweak tparam.c and tgoto.c.
authorTaylor R Campbell <campbell@mumble.net>
Sat, 13 Feb 2010 07:55:11 +0000 (02:55 -0500)
committerTaylor R Campbell <campbell@mumble.net>
Sat, 13 Feb 2010 07:55:11 +0000 (02:55 -0500)
commit1b29611fc5d551d2bed6a39b9549269c02f8d24d
treeb49ef24f4f563bc841ccef275bfbff10131d5663
parent71d06c1cb7f5d647b62611caaf921ee989b6522b
Tweak tparam.c and tgoto.c.

(tparam.c): Use ANSI-style declarations.  Include relevant headers.
Use memcpy rather than bcopy.  Check for malloc and realloc failures.

(tterm.c): Check for tparam and tgoto failures.  Handle the case
where tparam and tgoto malloc their own memory.  Ensure that a Scheme
interrupt/GC in char_pointer_to_string does not leak that memory.
src/microcode/tparam.c
src/microcode/tterm.c