From owner-cvs-src@FreeBSD.ORG Sat Aug 5 18:22:25 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org 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 194C716A4E5; Sat, 5 Aug 2006 18:22:25 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3611B43DB0; Sat, 5 Aug 2006 18:22:13 +0000 (GMT) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k75IMB4x029588; Sat, 5 Aug 2006 18:22:11 GMT (envelope-from imp@repoman.freebsd.org) Received: (from imp@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k75IMBnB029587; Sat, 5 Aug 2006 18:22:11 GMT (envelope-from imp) Message-Id: <200608051822.k75IMBnB029587@repoman.freebsd.org> From: Warner Losh Date: Sat, 5 Aug 2006 18:22:11 +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/usr.sbin/kldxref kldxref.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 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: Sat, 05 Aug 2006 18:22:25 -0000 imp 2006-08-05 18:22:11 UTC FreeBSD src repository Modified files: usr.sbin/kldxref kldxref.c Log: Use safe strlcpy rather than unsafe strncpy. After marcel's last fix, there was still one overflow possible. strlcpy is faster anyway because it doesn't unexpectedly zero the entire length of the string when copying short strings.... Revision Changes Path 1.14 +2 -4 src/usr.sbin/kldxref/kldxref.c