svn commit: r244760 - head/sys/kern

Joerg Sonnenberger joerg at britannica.bec.de
Sun Dec 30 17:09:43 UTC 2012


On Fri, Dec 28, 2012 at 02:43:33AM +0000, David Xu wrote:
> Author: davidxu
> Date: Fri Dec 28 02:43:33 2012
> New Revision: 244760
> URL: http://svnweb.freebsd.org/changeset/base/244760
> 
> Log:
>   Use strlcpy to NULL-terminate error message even if user provided a short
>   buffer.

Are you sure that none of this depends on the zeroing behavior of
strncpy?

Joerg


More information about the svn-src-all mailing list