Date: Fri, 07 Sep 2001 15:25:42 -0700 From: "Bruce A. Mah" <bmah@FreeBSD.ORG> To: Bill Swingle <unfurl@dub.net> Cc: FreeBSD Hackers <hackers@FreeBSD.ORG> Subject: Re: tiny patch to pkg_add Message-ID: <200109072225.f87MPgE03023@intruder.bmah.org> In-Reply-To: <20010907151935.A40146@dub.net> References: <20010907150416.A38565@dub.net> <20010907151935.A40146@dub.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--==_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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109072225.f87MPgE03023>