changeset 52294:d9ae4cdf1ed1

(term_init): Fix previous change
author Kenichi Handa <handa@m17n.org>
date Thu, 21 Aug 2003 11:36:08 +0000
parents 473d34d4814c
children 6019cde69fa7
files src/term.c
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/term.c	Thu Aug 21 11:33:00 2003 +0000
+++ b/src/term.c	Thu Aug 21 11:36:08 2003 +0000
@@ -2229,14 +2229,12 @@
 #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);