Skip site navigation (1)Skip section navigation (2)
Date:      18 Dec 2000 15:54:19 +0100
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
Message-ID:  <5lsnnlkcf7.fsf@assaris.sics.se>
In-Reply-To: Dag-Erling Smorgrav's message of "18 Dec 2000 15:40:25 %2B0100"
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5lsnnlkcf7.fsf>