Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Dec 2011 13:19:59 +0100
From:      Joerg Sonnenberger <joerg@britannica.bec.de>
To:        svn-src-all@freebsd.org
Subject:   Re: svn commit: r228614 - head/sbin/dhclient
Message-ID:  <20111217121959.GB12193@britannica.bec.de>
In-Reply-To: <201112170119.pBH1J7BV036204@svn.freebsd.org>
References:  <201112170119.pBH1J7BV036204@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111217121959.GB12193>