Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jul 1999 18:28:52 -0600
From:      Warner Losh <imp@village.org>
To:        Tim Vanderhoek <vanderh@ecf.utoronto.ca>
Cc:        Sheldon Hearn <sheldonh@uunet.co.za>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: OpenBSD's strlcpy(3) and strlcat(3) 
Message-ID:  <199907160028.SAA01218@harmony.village.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> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907160028.SAA01218>