From ab467b3430d86936595c083be1adda7f7d6ef041 Mon Sep 17 00:00:00 2001 From: rafan Date: Wed, 6 Jun 2007 02:23:03 +0000 Subject: - Fix crash with ncurses on FreeBSD/amd64 CURRENT by including missing header , 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) --- contrib/nvi/cl/cl_screen.c | 1 + 1 file changed, 1 insertion(+) 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 #include +#include #include #include #include -- cgit v1.1