Date: Wed, 6 Jun 2007 02:23:04 +0000 (UTC) From: Rong-En Fan <rafan@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/contrib/nvi/cl cl_screen.c Message-ID: <200706060223.l562N4C7036688@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rafan 2007-06-06 02:23:04 UTC
FreeBSD src repository
Modified files:
contrib/nvi/cl cl_screen.c
Log:
- 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)
Revision Changes Path
1.3 +1 -0 src/contrib/nvi/cl/cl_screen.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706060223.l562N4C7036688>
