From owner-freebsd-hackers Fri Sep 7 15:19:39 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from magnesium.net (toxic.magnesium.net [207.154.84.15]) by hub.freebsd.org (Postfix) with SMTP id 3C7E737B401 for ; Fri, 7 Sep 2001 15:19:36 -0700 (PDT) Received: (qmail 40285 invoked by uid 1001); 7 Sep 2001 22:19:35 -0000 Date: 7 Sep 2001 15:19:35 -0700 Date: Fri, 7 Sep 2001 15:19:35 -0700 From: Bill Swingle To: FreeBSD Hackers Subject: Re: tiny patch to pkg_add Message-ID: <20010907151935.A40146@dub.net> References: <20010907150416.A38565@dub.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="nFreZHaLTZJo0R7j" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010907150416.A38565@dub.net>; from unfurl@dub.net on Fri, Sep 07, 2001 at 03:04:16PM -0700 X-Operating-System: FreeBSD toxic.magnesium.net 4.3-STABLE FreeBSD 4.3-STABLE Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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 - -=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