mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-28 07:45:00 +00:00
(term_init): Fix previous change; don't rely on the
length of `buffer' if TERMINFO is defined.
This commit is contained in:
parent
f653dfd980
commit
3dd3a50226
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user