Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Apr 2013 22:01:21 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Ivan Voras <ivoras@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r249564 - head/sys/geom/label
Message-ID:  <A3DEE105-8443-4F77-8F35-99AA0E64D044@FreeBSD.org>
In-Reply-To: <201304161958.r3GJwO2h084815@svn.freebsd.org>
References:  <201304161958.r3GJwO2h084815@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Apr 16, 2013, at 21:58, Ivan Voras <ivoras@FreeBSD.org> wrote:
> Author: ivoras
> Date: Tue Apr 16 19:58:24 2013
> New Revision: 249564
> URL: http://svnweb.freebsd.org/changeset/base/249564
> 
> Log:
>  Fix the buffer-overflow-fixing fixes.
...
> +		/*
> +		 * We can safely ignore the result of strncpy; the label will
> +		 * simply be truncated, which at most is only annoying.
> +		 */
> +		(void)snprintf(label, size, "%s-%s", cls->name, ident);

s/strncpy/snprintf/ ? :-)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A3DEE105-8443-4F77-8F35-99AA0E64D044>