+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.
#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);