summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/term.c4
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);