Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Dec 2012 18:09:36 +0100
From:      Joerg Sonnenberger <joerg@britannica.bec.de>
To:        svn-src-all@freebsd.org
Subject:   Re: svn commit: r244760 - head/sys/kern
Message-ID:  <20121230170936.GA28529@britannica.bec.de>
In-Reply-To: <201212280243.qBS2hXIW033067@svn.freebsd.org>
References:  <201212280243.qBS2hXIW033067@svn.freebsd.org>

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



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