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

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 05 Jun 2001 10:25:58 +0200

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
 */

--
Henrik
Received on Tue Jun 05 2001 - 02:38:55 MDT

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