summaryrefslogtreecommitdiffstats
path: root/contrib/nvi
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2007-06-06 02:23:03 +0000
committerrafan <rafan@FreeBSD.org>2007-06-06 02:23:03 +0000
commitab467b3430d86936595c083be1adda7f7d6ef041 (patch)
tree48838cf5b22b83defabce3a28d11c1ac3adc6dbb /contrib/nvi
parentf084c2f975a688f375554cf7ad176ceae2c5b8ba (diff)
downloadFreeBSD-src-ab467b3430d86936595c083be1adda7f7d6ef041.zip
FreeBSD-src-ab467b3430d86936595c083be1adda7f7d6ef041.tar.gz
- Fix crash with ncurses on FreeBSD/amd64 CURRENT by including missing
header <term.h>, which is required by both tputs() and tgoto(). Without this header, nvi crashes with the call to tputs() at line 114. This is because the first argument of tputs() is a pointer, and the returned pointer from tgoto() is casted to an integer by compiler. For some reasons, this only crashes on amd64+CURRENT. On 6.x system, this does not happen. PR: 101248 Reported by: yar, infofarmer, Roland Smith Tested by: infofarmer, delphij, rafan Approved by: delphij (mentor)
Diffstat (limited to 'contrib/nvi')
-rw-r--r--contrib/nvi/cl/cl_screen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/nvi/cl/cl_screen.c b/contrib/nvi/cl/cl_screen.c
index 7f28aaa..b4c2822 100644
--- a/contrib/nvi/cl/cl_screen.c
+++ b/contrib/nvi/cl/cl_screen.c
@@ -20,6 +20,7 @@ static const char sccsid[] = "@(#)cl_screen.c 10.49 (Berkeley) 9/24/96";
#include <bitstring.h>
#include <curses.h>
+#include <term.h>
#include <errno.h>
#include <signal.h>
#include <stdio.h>
OpenPOWER on IntegriCloud