From 3dd3a50226507bd4a832c70c711df9f159c9ab10 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 21 Aug 2003 11:33:00 +0000 Subject: [PATCH] (term_init): Fix previous change; don't rely on the length of `buffer' if TERMINFO is defined. --- src/term.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.39.2