changeset 52293:473d34d4814c

(term_init): Fix previous change; don't rely on the length of `buffer' if TERMINFO is defined.
author Kenichi Handa <handa@m17n.org>
date Thu, 21 Aug 2003 11:33:00 +0000
parents 84d0295a0dd1
children d9ae4cdf1ed1
files src/term.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/term.c	Wed Aug 20 19:18:57 2003 +0000
+++ b/src/term.c	Thu Aug 21 11:33:00 2003 +0000
@@ -2229,10 +2229,14 @@
 #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);