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

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Thu, 13 Aug 2009 01:08:27 +0200

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

Regards
Henrik
Received on Wed Aug 12 2009 - 23:08:47 MDT

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