Re: /bzr/squid3/trunk/ r9899: Author: Amos Jeffries + Alan Nastac <mrness@gentoo.org>

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Fri, 14 Aug 2009 00:00:45 +1200

Henrik Nordstrom wrote:
> ons 2009-08-12 klockan 22:18 +1200 skrev Amos Jeffries:
>
>> + xstrncpy(password, u + 1, len);
>> + password[len] = '\0';
>
>
> No need to manually \0 terminate after xstrncpy... Unlike strncpy
> xstrncpy automatically terminates the string and is why we have and use
> xstrncpy instead..
>

Thanks for the reminder.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE6 or 3.0.STABLE18
   Current Beta Squid 3.1.0.13
Received on Thu Aug 13 2009 - 12:01:01 MDT

This archive was generated by hypermail 2.2.0 : Thu Aug 13 2009 - 12:00:04 MDT