From owner-cvs-all@FreeBSD.ORG Wed Jun 6 02:23:04 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E507A16A400; Wed, 6 Jun 2007 02:23:04 +0000 (UTC) (envelope-from rafan@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id DB8D713C44B; Wed, 6 Jun 2007 02:23:04 +0000 (UTC) (envelope-from rafan@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l562N4TN036692; Wed, 6 Jun 2007 02:23:04 GMT (envelope-from rafan@repoman.freebsd.org) Received: (from rafan@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l562N4C7036688; Wed, 6 Jun 2007 02:23:04 GMT (envelope-from rafan) Message-Id: <200706060223.l562N4C7036688@repoman.freebsd.org> From: Rong-En Fan Date: Wed, 6 Jun 2007 02:23:04 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/contrib/nvi/cl cl_screen.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 02:23:05 -0000 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 , 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