From owner-cvs-all Mon Dec 18 6:54:16 2000 From owner-cvs-all@FreeBSD.ORG Mon Dec 18 06:54:13 2000 Return-Path: <owner-cvs-all@FreeBSD.ORG> Delivered-To: cvs-all@freebsd.org Received: from assaris.sics.se (assaris.sics.se [193.10.66.234]) by hub.freebsd.org (Postfix) with ESMTP id 7B92337B400; Mon, 18 Dec 2000 06:54:12 -0800 (PST) Received: (from assar@localhost) by assaris.sics.se (8.9.3/8.9.3) id PAA77468; Mon, 18 Dec 2000 15:54:21 +0100 (CET) (envelope-from assar) Sender: assar@assaris.sics.se From: Assar Westerlund <assar@FreeBSD.org> To: Dag-Erling Smorgrav <des@ofug.org> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/libkern strlcat.c strlcpy.c src/sys/sys libkern.h src/sys/conf files References: <200012180408.eBI48wg99879@freefall.freebsd.org> <xzpu282ypvp.fsf@flood.ping.uio.no> <5l66khluty.fsf@assaris.sics.se> <xzpitohzu34.fsf@flood.ping.uio.no> <xzpae9tztba.fsf@flood.ping.uio.no> Date: 18 Dec 2000 15:54:19 +0100 In-Reply-To: Dag-Erling Smorgrav's message of "18 Dec 2000 15:40:25 +0100" Message-ID: <5lsnnlkcf7.fsf@assaris.sics.se> Lines: 12 User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dag-Erling Smorgrav <des@ofug.org> writes: > Slightly more than that, because the code is in K&R style, but you get > the idea. Here's a rough untested patch (I didn't touch the headers; > if you add the appropriate declarations to the header you can reduce > the diff by moving strcat()/strcpy() ahead of strlcat()/strlcpy()). These don't work, strlcpy and strlcat both return a size_t, see the man pages. Do you suggest the libc variants should be replaced with these too? /assar To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message