cvs commit: src/contrib/nvi/cl cl_screen.c
rafan at FreeBSD.org
Wed Jun 6 02:23:05 UTC 2007
rafan 2007-06-06 02:23:04 UTC
FreeBSD src repository
- 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.
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
More information about the cvs-src