From owner-cvs-all@FreeBSD.ORG Sat Oct 25 21:36:48 2003 Return-Path: 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 4C23B16A4B3; Sat, 25 Oct 2003 21:36:48 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C136F43FDF; Sat, 25 Oct 2003 21:36:47 -0700 (PDT) (envelope-from peter@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id h9Q4alXJ016288; Sat, 25 Oct 2003 21:36:47 -0700 (PDT) (envelope-from peter@repoman.freebsd.org) Received: (from peter@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h9Q4al4O016287; Sat, 25 Oct 2003 21:36:47 -0700 (PDT) (envelope-from peter) Message-Id: <200310260436.h9Q4al4O016287@repoman.freebsd.org> From: Peter Wemm Date: Sat, 25 Oct 2003 21:36:47 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/ifconfig ifconfig.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 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: Sun, 26 Oct 2003 04:36:48 -0000 peter 2003/10/25 21:36:47 PDT FreeBSD src repository Modified files: sbin/ifconfig ifconfig.c Log: Give wider types to sscanf to fix two warnings (u_short cannot be > 0xffff) and to make sure that we catch oversized arguments rather than silently truncate them. I dont know if sscanf will reject an integer if it will not fit in the short return variable or not, but this way it should be detected. Revision Changes Path 1.92 +2 -2 src/sbin/ifconfig/ifconfig.c