From owner-freebsd-hackers Fri Sep 7 15:25:46 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from femail28.sdc1.sfba.home.com (femail28.sdc1.sfba.home.com [24.254.60.18]) by hub.freebsd.org (Postfix) with ESMTP id 13CDB37B405 for ; Fri, 7 Sep 2001 15:25:43 -0700 (PDT) Received: from intruder.bmah.org ([24.176.204.87]) by femail28.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20010907222542.GMOX560.femail28.sdc1.sfba.home.com@intruder.bmah.org>; Fri, 7 Sep 2001 15:25:42 -0700 Received: (from bmah@localhost) by intruder.bmah.org (8.11.6/8.11.3) id f87MPgE03023; Fri, 7 Sep 2001 15:25:42 -0700 (PDT) (envelope-from bmah) Message-Id: <200109072225.f87MPgE03023@intruder.bmah.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Bill Swingle Cc: FreeBSD Hackers Subject: Re: tiny patch to pkg_add In-Reply-To: <20010907151935.A40146@dub.net> References: <20010907150416.A38565@dub.net> <20010907151935.A40146@dub.net> Comments: In-reply-to Bill Swingle message dated "Fri, 07 Sep 2001 15:19:35 -0700." From: "Bruce A. Mah" Reply-To: bmah@FreeBSD.ORG X-Face: g~c`.{#4q0"(V*b#g[i~rXgm*w;:nMfz%_RZLma)UgGN&=j`5vXoU^@n5v4:OO)c["!w)nD/!!~e4Sj7LiT'6*wZ83454H""lb{CC%T37O!!'S$S&D}sem7I[A 2V%N&+ X-Image-Url: http://www.employees.org/~bmah/Images/bmah-cisco-small.gif X-Url: http://www.employees.org/~bmah/ Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-611408166P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Fri, 07 Sep 2001 15:25:42 -0700 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 --==_Exmh_-611408166P Content-Type: text/plain; charset=us-ascii If memory serves me right, Bill Swingle wrote: > 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? Although I haven't seen the context for this line (other than what was in the context diff), I think most C programmers (including myself) would go with Chris's suggestion. Hope this helps, Bruce. --==_Exmh_-611408166P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: Exmh version 2.3.1+ 05/14/2001 iD8DBQE7mUlm2MoxcVugUsMRAoTfAKDspP6uDGNw9DUeXMKeBcv90InwgACg+fBg J53enn62GmvYfcYhMRa+sL0= =cVB2 -----END PGP SIGNATURE----- --==_Exmh_-611408166P-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message