mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-07 04:10:27 -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
|
|
@ -1,3 +1,8 @@
|
|||
2003-08-21 Kenichi Handa <handa@m17n.org>
|
||||
|
||||
* term.c (term_init): Fix previous change; don't rely on the
|
||||
length of `buffer' if TERMINFO is defined.
|
||||
|
||||
2003-08-20 Dave Love <fx@gnu.org>
|
||||
|
||||
* atimer.h: Include lisp.h.
|
||||
|
|
|
|||
|
|
@ -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