1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 04:30:45 -08:00

(term_init): Fix previous change

This commit is contained in:
Kenichi Handa 2003-08-21 11:36:40 +00:00
parent 3dd3a50226
commit f730033e6c
2 changed files with 8 additions and 5 deletions

View file

@ -2229,14 +2229,12 @@ to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.",
#endif
}
#ifdef TERMINFO
area = (char *) xmalloc (buffer_size);
#else
#ifndef TERMINFO
if (strlen (buffer) >= buffer_size)
abort ();
area = (char *) xmalloc (strlen (buffer));
buffer_size = strlen (buffer);
#endif
area = (char *) xmalloc (buffer_size);
TS_ins_line = tgetstr ("al", address);
TS_ins_multi_lines = tgetstr ("AL", address);