From owner-freebsd-hackers Thu Jul 15 17:30:55 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 47B0315779 for ; Thu, 15 Jul 1999 17:30:48 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id SAA29737; Thu, 15 Jul 1999 18:28:52 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id SAA01218; Thu, 15 Jul 1999 18:28:52 -0600 (MDT) Message-Id: <199907160028.SAA01218@harmony.village.org> To: Tim Vanderhoek Subject: Re: OpenBSD's strlcpy(3) and strlcat(3) Cc: Sheldon Hearn , freebsd-hackers@FreeBSD.ORG In-reply-to: Your message of "Thu, 15 Jul 1999 19:42:03 EDT." <19990715194203.A54146@mad> References: <19990715194203.A54146@mad> <19990715183442.A53661@mad> <80092.932079193@axl.noc.iafrica.com> Date: Thu, 15 Jul 1999 18:28:52 -0600 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <19990715194203.A54146@mad> Tim Vanderhoek writes: : Looking at OpenBSD's actual definition of strlcat() which returns the : number of chars that would have been in the final string is : potentially non-useful, but not really toooooo terrible. No. It is useful. If you look at the return value, you can detect that an overflow would have happened and bail w/o having the overflow actually happen. That is useful (and even documented in the man page by a nice example). : > given the opportunity to submit a replacement manpage, since theirs : > sucks. : : Bah. You're in avail now. Just commit ontop of whatever manpage gets : imported. ;-) If your replacement is good, no one will object. :) I'm planning on committing their man page. I don't see problems with it, purhaps people could point them out to me so that both our man pages and theirs could be better. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message