# HG changeset patch # User Dave Love # Date 934982226 0 # Node ID 49631c494c106842a24998c1fffb3ea99e1735e7 # Parent 5bc0a96405db4b652f2729cfe6db686f4b9f85b8 Use lisp.h (tparam): Use xmalloc. diff -r 5bc0a96405db -r 49631c494c10 src/terminfo.c --- a/src/terminfo.c Wed Aug 18 13:14:37 1999 +0000 +++ b/src/terminfo.c Wed Aug 18 13:17:06 1999 +0000 @@ -19,6 +19,7 @@ Boston, MA 02111-1307, USA. */ #include +#include "lisp.h" /* Define these variables that serve as global parameters to termcap, so that we do not need to conditionalize the places in Emacs @@ -57,7 +58,7 @@ temp = tparm (string, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); if (outstring == 0) - outstring = ((char *) (malloc ((strlen (temp)) + 1))); + outstring = ((char *) (xmalloc ((strlen (temp)) + 1))); strcpy (outstring, temp); return outstring; }