Re: [Squid-cvs] diskio squid/src disk.c,1.5.16.15,1.5.16.16

From: Adrian Chadd <adrian@dont-contact.us>
Date: Tue, 5 Jun 2001 16:47:18 +0800

On Tue, Jun 05, 2001, Henrik Nordstrom wrote:
> Adrian Chadd wrote:
>
> > Note I'm using strlcpy() here - this may break builds on systems without
> > a strlcpy, but I'm not entirely fussed atm (I'll definitely be changing
> > this back to strncpy or add the strlcpy to squid before committing to
> > the main branch.)
>
> We do have an xstrncpy() in Squid...
>
> /*
> * xstrncpy() - similar to strncpy(3) but terminates string
> * always with '\0' if (n != 0 and dst != NULL),
> * and doesn't do padding
> */

Oh? hrm, ok. Ta.

How much of libc do we reimplement nowdays? :)

Adrian

-- 
Adrian Chadd			<Liedra> Don't worry, I know who *you* are ;)
<adrian@creative.net.au> 	<spiv> We know everything about you.
Received on Tue Jun 05 2001 - 02:47:23 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:03 MST