Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 29223 invoked by uid 6000); 26 Dec 1997 20:36:27 -0000 Received: (qmail 29215 invoked from network); 26 Dec 1997 20:36:26 -0000 Received: from devsys.jagunet.com (206.156.208.6) by taz.hyperreal.org with SMTP; 26 Dec 1997 20:36:26 -0000 Received: (from jim@localhost) by devsys.jaguNET.com (8.8.7/jag-2.4) id PAA10768 for new-httpd@apache.org; Fri, 26 Dec 1997 15:36:22 -0500 (EST) From: Jim Jagielski Message-Id: <199712262036.PAA10768@devsys.jaguNET.com> Subject: Re: [PATCH] ap_cpystrn() function, replace strncpy() Take II To: new-httpd@apache.org Date: Fri, 26 Dec 1997 15:36:22 -0500 (EST) In-Reply-To: <34A412A2.B1F748F3@algroup.co.uk> from "Ben Laurie" at Dec 26, 97 08:25:06 pm X-Mailer: ELM [version 2.4 PL25] Content-Type: text Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org Ben Laurie wrote: > > Jim Jagielski wrote: > > +/* > > + * Apache's "replacement" for the strncpy() function. We roll our > > + * own to implement these specific changes: > > + * (1) strncpy() doesn't always NULL terminate and we want it to. > > + * (2) strncpy() NULL fills, which is bogus, esp. when copy 8byte > > + * strings into 8k blocks. > > That's NUL, not NULL... > or just null -- ==================================================================== Jim Jagielski | jaguNET Access Services jim@jaguNET.com | http://www.jaguNET.com/ "Look at me! I'm wearing a cardboard belt!"