From owner-cvs-src@FreeBSD.ORG Fri May 9 02:11:28 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 09EBC37B401; Fri, 9 May 2003 02:11:28 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BCAC43F3F; Fri, 9 May 2003 02:11:27 -0700 (PDT) (envelope-from robert@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h499BR0U038849; Fri, 9 May 2003 02:11:27 -0700 (PDT) (envelope-from robert@repoman.freebsd.org) Received: (from robert@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h499BRdY038848; Fri, 9 May 2003 02:11:27 -0700 (PDT) Message-Id: <200305090911.h499BRdY038848@repoman.freebsd.org> From: Robert Drehmel Date: Fri, 9 May 2003 02:11:27 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/sockstat sockstat.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 May 2003 09:11:28 -0000 robert 2003/05/09 02:11:27 PDT FreeBSD src repository Modified files: usr.bin/sockstat sockstat.c Log: To reserve space for 65536 bits, allocate 65536 / (sizeof(int) * CHAR_BITS) `int's instead of 65536 / (sizeof(int) * CHAR_BITS) bytes to avoid a possible segmentation fault if ports above 16383 are specified via the -p option on a platform with 4 byte wide ints. Approved by: re (bmah) Reported by: Marco Wertejuk Revision Changes Path 1.7 +1 -1 src/usr.bin/sockstat/sockstat.c