From: Karl Heuer Date: Thu, 4 Mar 1999 09:02:51 +0000 (+0000) Subject: (term_init): Use xmalloc, not malloc. X-Git-Tag: emacs-20.4~518 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a678d9fff1d6c68d60e709b23542f11100006a40;p=emacs.git (term_init): Use xmalloc, not malloc. --- diff --git a/src/term.c b/src/term.c index a4ddf976455..112722cfa78 100644 --- a/src/term.c +++ b/src/term.c @@ -1588,7 +1588,7 @@ term_init (terminal_type) Wcm_clear (); - area = (char *) malloc (2044); + area = (char *) xmalloc (2044); if (area == 0) abort (); @@ -1648,9 +1648,9 @@ to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.", #endif } #ifdef TERMINFO - area = (char *) malloc (2044); + area = (char *) xmalloc (2044); #else - area = (char *) malloc (strlen (buffer)); + area = (char *) xmalloc (strlen (buffer)); #endif /* not TERMINFO */ if (area == 0) abort ();