From a678d9fff1d6c68d60e709b23542f11100006a40 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Thu, 4 Mar 1999 09:02:51 +0000 Subject: [PATCH] (term_init): Use xmalloc, not malloc. --- src/term.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 (); -- 2.39.2