Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Sep 2001 15:19:35 -0700
From:      Bill Swingle <unfurl@dub.net>
To:        FreeBSD Hackers <hackers@freebsd.org>
Subject:   Re: tiny patch to pkg_add
Message-ID:  <20010907151935.A40146@dub.net>
In-Reply-To: <20010907150416.A38565@dub.net>; from unfurl@dub.net on Fri, Sep 07, 2001 at 03:04:16PM -0700
References:  <20010907150416.A38565@dub.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--nFreZHaLTZJo0R7j
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Sep 07, 2001 at 03:04:16PM -0700, Bill Swingle wrote:
> -           strlcpy(packagesite, "", sizeof(packagesite));

Chris Costello recommended that I do this like this instead:

packagesite[0] =3D '\0'

Which seems to make sense since it lacks the overhead of strlcpy. Is
there a "right" way to do this?

-Bill

--=20
-=3D| Bill Swingle - <unfurl@(dub.net|freebsd.org)>
-=3D| Every message PGP signed
-=3D| Fingerprint: C1E3 49D1 EFC9 3EE0 EA6E  6414 5200 1C95 8E09 0223
-=3D| Different all twisty a of in maze are you, passages little


--nFreZHaLTZJo0R7j
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE7mUf3UgAclY4JAiMRAioxAKCMqFHLZyncv0XYUrPEDuN+7WjYKQCeM75d
O4QtYGvchWglwU6+Bm1jdI8=
=s8wM
-----END PGP SIGNATURE-----

--nFreZHaLTZJo0R7j--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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