svn commit: r228614 - head/sbin/dhclient

Joerg Sonnenberger joerg at britannica.bec.de
Sat Dec 17 12:20:09 UTC 2011


On Sat, Dec 17, 2011 at 01:19:07AM +0000, Dimitry Andric wrote:
> Log:
>   In sbin/dhclient, work around warnings about the size argument to
>   strlcpy appearing to be the size of the source buffer, instead of the
>   destination.

If you touch this and don't want to use strdup-like functions, at least
make it a memcpy. strlcpy is very crappy from a performance PoV...

Joerg


More information about the svn-src-all mailing list