From owner-freebsd-hackers Fri Jul 16 5:52:53 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp11.bellglobal.com (smtp11.bellglobal.com [204.101.251.53]) by hub.freebsd.org (Postfix) with ESMTP id 29E9315676 for ; Fri, 16 Jul 1999 05:52:50 -0700 (PDT) (envelope-from hoek@FreeBSD.org) Received: from localhost.nowhere (Hamilton-ppp44850.sympatico.ca [206.172.76.43]) by smtp11.bellglobal.com (8.8.5/8.8.5) with ESMTP id IAA23520; Fri, 16 Jul 1999 08:56:01 -0400 (EDT) Received: (from tim@localhost) by localhost.nowhere (8.9.3/8.9.1) id DAA55985; Fri, 16 Jul 1999 03:34:53 -0400 (EDT) (envelope-from tim) Date: Fri, 16 Jul 1999 03:34:53 -0400 From: Tim Vanderhoek To: Bakul Shah Cc: freebsd-hackers@FreeBSD.org Subject: Re: OpenBSD's strlcpy(3) and strlcat(3) Message-ID: <19990716033453.D54146@mad> References: <199907160320.XAA03039@chai.torrentnet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: <199907160320.XAA03039@chai.torrentnet.com>; from Bakul Shah on Thu, Jul 15, 1999 at 11:20:04PM -0400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Jul 15, 1999 at 11:20:04PM -0400, Bakul Shah wrote: > > That is, the returned ptr points in `dst' _just_ past the > copied data. Note that `dst_end' points to the _last_ char > of `dst'. This sounds a lot like the GNU stpcpy() except that stpcpy() doesn't take the middle argument dst_end (and therefore isn't as easy to make secure). Adding stpcpy() and pstpcpy() ("p", for pointer? I dunno...) wouldn't bother me one iota. -- This is my .signature which gets appended to the end of my messages. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message