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.13Received 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