diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2013-08-26 11:10:30 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-08-26 11:10:30 -0700 |
commit | 1fc8eb33f5534cd3828d7cd15e95771a514dc589 (patch) | |
tree | 93b9ac5d7ec1eda4ff3b59868e3fe9f0bae22a7f /lisp/emacs-lisp/autoload.el | |
parent | f5adc984fbdc82def6edc297e88c3ee993c674ae (diff) | |
download | emacs-1fc8eb33f5534cd3828d7cd15e95771a514dc589.tar.gz emacs-1fc8eb33f5534cd3828d7cd15e95771a514dc589.tar.bz2 emacs-1fc8eb33f5534cd3828d7cd15e95771a514dc589.zip |
Fix unlikely core dump in init_tty, and simplify terminfo case.
* term.c (init_tty) [TERMINFO]: Fix check for buffer overrun.
The old version incorrectly dumped core if malloc returned a
buffer containing only non-NUL bytes.
(init_tty): Do not allocate or free termcap buffers; the
struct does that for us now.
* termchar.h (TERMCAP_BUFFER_SIZE) [!TERMINFO]: New constant.
(struct tty_display_info): Define members termcap_term_buffer and
termcap_strings_buffer only if !TERMINFO, since terminfo doesn't
use them. Allocate them directly in struct rather than indirectly
via a pointer, to simplify init_tty.
Diffstat (limited to 'lisp/emacs-lisp/autoload.el')
0 files changed, 0 insertions, 0 deletions