Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jan 2002 16:42:30 -0500 (EST)
From:      "Andrew R. Reiter" <arr@FreeBSD.org>
To:        "Andrey A. Chernov" <ache@nagual.pp.ru>
Cc:        Alexey Zelkin <alexey.zelkin@ionidea.com>, audit@FreeBSD.org
Subject:   Re: CFR: strncpy -> strlcpy in setlocale()
Message-ID:  <Pine.NEB.3.96L.1020124164054.61343C-100000@fledge.watson.org>
In-Reply-To: <20020124213730.GA87013@nagual.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 25 Jan 2002, Andrey A. Chernov wrote:

:On Thu, Jan 24, 2002 at 21:58:35 +0200, Alexey Zelkin wrote:
:> hi,
:> 
:> Any objections against this patch ? It's based on
:> rev 1.23 of NetBSD's setlocale.c.
:
:Ok.

I know strlcpy() makes more sense than strncpy(), but is there any
difference in terms of speed?  This being said, if strlcpy() is slower and
the strncpy() usage is correct, is there really a need for a change?  I
guess readability and possible future mistakes in usage are a bonus for
strlcpy.

Cheers,
Andrew

--
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.1020124164054.61343C-100000>