Date: Thu, 24 Jan 2002 16:50:34 -0500 (EST) From: "Andrew R. Reiter" <arr@FreeBSD.org> To: "Todd C. Miller" <Todd.Miller@courtesan.com> Cc: "Andrey A. Chernov" <ache@nagual.pp.ru>, Alexey Zelkin <alexey.zelkin@ionidea.com>, audit@FreeBSD.org Subject: Re: CFR: strncpy -> strlcpy in setlocale() Message-ID: <Pine.NEB.3.96L.1020124165010.61343D-100000@fledge.watson.org> In-Reply-To: <200201242148.g0OLmHJi006634@xerxes.courtesan.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 24 Jan 2002, Todd C. Miller wrote: : :strlcpy() is generally faster since strncpy() does NUL fill and so :will also write "len" bytes even when the source string is much :smaller. Ahh, very cool. Thanks for the information. -- Andrew R. Reiter arr@watson.org arr@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1020124165010.61343D-100000>