httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: [PATCH] ap_cpystrn() function, replace strncpy() Take II
Date Fri, 26 Dec 1997 20:36:22 GMT
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!"

Mime
View raw message