changeset 25324:49631c494c10

Use lisp.h (tparam): Use xmalloc.
author Dave Love <fx@gnu.org>
date Wed, 18 Aug 1999 13:17:06 +0000
parents 5bc0a96405db
children fbe05e67b94d
files src/terminfo.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 <config.h>
+#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;
 }