diff options
author | Kenichi Handa <handa@m17n.org> | 2003-08-21 11:33:00 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2003-08-21 11:33:00 +0000 |
commit | 3dd3a50226507bd4a832c70c711df9f159c9ab10 (patch) | |
tree | eb70bf21be0411b7b9ef3f667b4972e3f7973f56 /src/term.c | |
parent | f653dfd980fbe9530d9068cb1b47e3f32faf18b2 (diff) | |
download | emacs-3dd3a50226507bd4a832c70c711df9f159c9ab10.tar.gz |
(term_init): Fix previous change; don't rely on the
length of `buffer' if TERMINFO is defined.
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c index 66232ab204d..506fc16ffb3 100644 --- a/src/term.c +++ b/src/term.c @@ -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); |