From: Kenichi Handa Date: Thu, 21 Aug 2003 11:33:00 +0000 (+0000) Subject: (term_init): Fix previous change; don't rely on the X-Git-Tag: ttn-vms-21-2-B4~9020 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3dd3a50226507bd4a832c70c711df9f159c9ab10;p=emacs.git (term_init): Fix previous change; don't rely on the length of `buffer' if TERMINFO is defined. --- diff --git a/src/term.c b/src/term.c index 66232ab204d..506fc16ffb3 100644 --- a/src/term.c +++ b/src/term.c @@ -2229,10 +2229,14 @@ to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.", #endif } +#ifdef TERMINFO + area = (char *) xmalloc (buffer_size); +#else if (strlen (buffer) >= buffer_size) abort (); area = (char *) xmalloc (strlen (buffer)); +#endif TS_ins_line = tgetstr ("al", address); TS_ins_multi_lines = tgetstr ("AL", address);