From owner-cvs-all Sun Mar 17 23:15: 6 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 4601D37B417; Sun, 17 Mar 2002 23:14:59 -0800 (PST) Received: (from imp@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2I7ExE74376; Sun, 17 Mar 2002 23:14:59 -0800 (PST) (envelope-from imp) Message-Id: <200203180714.g2I7ExE74376@freefall.freebsd.org> From: Warner Losh Date: Sun, 17 Mar 2002 23:14:59 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/libexec/xtend user.c xtend.c X-FreeBSD-CVS-Branch: HEAD 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 imp 2002/03/17 23:14:59 PST Modified files: libexec/xtend user.c xtend.c Log: o MAXPATHLEN is the correct constant to use for path names, it includes the NULL. o use snprintf in preference to unchecked strcat in a couple of places that likely can't overflow. Makes it easier to grep for strcpy :-) Revision Changes Path 1.11 +2 -4 src/libexec/xtend/user.c 1.13 +11 -15 src/libexec/xtend/xtend.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message