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:
parent
3dd3a50226
commit
f730033e6c
2 changed files with 8 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue