svn commit: r249564 - head/sys/geom/label

Dimitry Andric dim at FreeBSD.org
Tue Apr 16 20:01:31 UTC 2013


On Apr 16, 2013, at 21:58, Ivan Voras <ivoras at 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/ ? :-)



More information about the svn-src-all mailing list