From owner-cvs-all@FreeBSD.ORG Tue Aug 30 18:58:18 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 534C116A41F; Tue, 30 Aug 2005 18:58:18 +0000 (GMT) (envelope-from rodrigc@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B605643D49; Tue, 30 Aug 2005 18:58:17 +0000 (GMT) (envelope-from rodrigc@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j7UIwHla003734; Tue, 30 Aug 2005 18:58:17 GMT (envelope-from rodrigc@repoman.freebsd.org) Received: (from rodrigc@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j7UIwHT8003733; Tue, 30 Aug 2005 18:58:17 GMT (envelope-from rodrigc) Message-Id: <200508301858.j7UIwHT8003733@repoman.freebsd.org> From: Craig Rodrigues Date: Tue, 30 Aug 2005 18:58:17 +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/sys/dev/syscons scmouse.c scvesactl.c scvidctl.c syscons.c syscons.h 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: Tue, 30 Aug 2005 18:58:18 -0000 rodrigc 2005-08-30 18:58:17 UTC FreeBSD src repository Modified files: sys/dev/syscons scmouse.c scvesactl.c scvidctl.c syscons.c syscons.h Log: Prevent division by zero errors in sc_mouse_move() by explicitly setting sc->font_width, in the same places where sc->font_size is set, instead of relying on the default initialized value of 0 for sc->font_width. PR: kern/84836 Reported by: Andrey V. Elsukov MFC after: 2 days Revision Changes Path 1.38 +1 -1 src/sys/dev/syscons/scmouse.c 1.23 +2 -2 src/sys/dev/syscons/scvesactl.c 1.35 +8 -6 src/sys/dev/syscons/scvidctl.c 1.438 +2 -2 src/sys/dev/syscons/syscons.c 1.84 +4 -3 src/sys/dev/syscons/syscons.h