Date: Sat, 08 Sep 2001 16:50:34 +1000 From: Greg Black <gjb@gbch.net> To: Bill Swingle <unfurl@dub.net> Cc: FreeBSD Hackers <hackers@freebsd.org> Subject: Re: tiny patch to pkg_add Message-ID: <nospam-999931834.93613@maxim.gbch.net> In-Reply-To: <20010907151935.A40146@dub.net> of Fri, 07 Sep 2001 15:19:35 MST References: <20010907150416.A38565@dub.net> <20010907151935.A40146@dub.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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? A C programmer would do it the way Chris suggested. 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?nospam-999931834.93613>