From owner-freebsd-security Thu Jul 15 17:17:11 1999 Delivered-To: freebsd-security@freebsd.org Received: from mail1.its.rpi.edu (mail1.its.rpi.edu [128.113.100.7]) by hub.freebsd.org (Postfix) with ESMTP id E5EA4156ED for ; Thu, 15 Jul 1999 17:17:02 -0700 (PDT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail1.its.rpi.edu (8.8.8/8.8.6) with ESMTP id UAA39204; Thu, 15 Jul 1999 20:16:11 -0400 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <80530.932081904@axl.noc.iafrica.com> References: Your message of "Thu, 15 Jul 1999 17:19:05 CST." <199907152319.RAA73667@harmony.village.org> Date: Thu, 15 Jul 1999 20:16:09 -0400 To: Sheldon Hearn , Warner Losh From: Garance A Drosihn Subject: Re: OpenBSD's strlcpy(3) and strlcat(3) Cc: Paul Hart , freebsd-security@FreeBSD.ORG Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At 1:38 AM +0200 7/16/99, Sheldon Hearn wrote: >On Thu, 15 Jul 1999 17:19:05 CST, Warner Losh wrote: > >> I *STRONGLY* support adding strl routines to FreeBSD's libc. >> I've had them in my local library for a long time, but haven't >> had the time to commit them. > > What do you think of this? > >" >size_t >strlcpy(char *dst, char *src, size_t len [, shortfall]); > >size_t >strlcat(char *dst, char *src, size_t len [, shortfall]); > >[...] I like the idea of strl* routines, but I think we should just add them the way they'll be implemented everywhere else. If everyone else (openbsd, solaris, etc) likes the above idea then I'm certainly all for it. If they don't, then I see no benefit in making slightly different routines for freebsd. If I'm writing code, I'm writing it for more than one platform. --- Garance Alistair Drosehn = gad@eclipse.acs.rpi.edu Senior Systems Programmer or drosih@rpi.edu Rensselaer Polytechnic Institute To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message