From owner-cvs-all Wed May 22 21:19:30 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2771C37B404; Wed, 22 May 2002 21:19:23 -0700 (PDT) Received: (from ken@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4N4JNN03550; Wed, 22 May 2002 21:19:23 -0700 (PDT) (envelope-from ken) Message-Id: <200205230419.g4N4JNN03550@freefall.freebsd.org> From: "Kenneth D. Merry" Date: Wed, 22 May 2002 21:19:23 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libcam camlib.c X-FreeBSD-CVS-Branch: RELENG_4 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ken 2002/05/22 21:19:23 PDT Modified files: (Branch: RELENG_4) lib/libcam camlib.c Log: MFC, rev 1.11: string cleanup: - fix a few places where buffers might not get NUL terminated (unlike current, there is not the potential for an overrun in -stable) - change strncpy() and strcpy() calls to strlcpy() - use sizeof(string[]) instead of STRING_LEN to avoid future problems - get rid of an unused variable Thanks to BDE for pointing out some of the problems. Approved by: re (bmah), security-officer (kris) Revision Changes Path 1.8.2.2 +13 -15 src/lib/libcam/camlib.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message