Date: Fri, 16 Jul 1999 01:52:49 +0200 From: Sheldon Hearn <sheldonh@uunet.co.za> To: Brett Glass <brett@lariat.org> Cc: Warner Losh <imp@village.org>, Paul Hart <hart@iserver.com>, freebsd-security@FreeBSD.ORG Subject: Re: OpenBSD's strlcpy(3) and strlcat(3) Message-ID: <80788.932082769@axl.noc.iafrica.com> In-Reply-To: Your message of "Thu, 15 Jul 1999 17:47:03 CST." <4.2.0.58.19990715174241.045f0550@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 15 Jul 1999 17:47:03 CST, Brett Glass wrote: > How about returning the shortfall as the return value of the function? Um, hello? That's exactly what I'm proposing: > >RETURN VALUES > > > >If the optional shortfall argument is passed non-zero, the functions > >return the number of characters from src that are missing in dst after > >the operation. Otherwise, they return the length of dst. In either case, > >the return value does not include the NUL terminator. :-) Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?80788.932082769>