From owner-cvs-all@FreeBSD.ORG Sun Oct 30 16:31:06 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 5274316A41F; Sun, 30 Oct 2005 16:31:06 +0000 (GMT) (envelope-from brooks@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB92343D58; Sun, 30 Oct 2005 16:31:05 +0000 (GMT) (envelope-from brooks@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 j9UGV5Pj048422; Sun, 30 Oct 2005 16:31:05 GMT (envelope-from brooks@repoman.freebsd.org) Received: (from brooks@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j9UGV5j6048421; Sun, 30 Oct 2005 16:31:05 GMT (envelope-from brooks) Message-Id: <200510301631.j9UGV5j6048421@repoman.freebsd.org> From: Brooks Davis Date: Sun, 30 Oct 2005 16:31:05 +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/sbin/ifconfig ifieee80211.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: Sun, 30 Oct 2005 16:31:06 -0000 brooks 2005-10-30 16:31:05 UTC FreeBSD src repository Modified files: sbin/ifconfig ifieee80211.c Log: SSIDs are of length 32-bytes and not NUL terminated. Use the correct length and bail immediatly if the returned length is wrong rather than attempting to set an correct value. This commit differs from the patch in the PR in the use of exit instead of return and the use of a defined value for the array. Submitted by: Daan Vreeken [PA4DAN] PR: bin/74509 Revision Changes Path 1.28 +3 -2 src/sbin/ifconfig/ifieee80211.c