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>

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

[-- Attachment #1 --]
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] = '\0'

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

-Bill

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


[-- Attachment #2 --]
-----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-----
help

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