svn commit: r249564 - head/sys/geom/label
Ivan Voras
ivoras at freebsd.org
Tue Apr 16 22:44:02 UTC 2013
On 16 April 2013 22:01, Dimitry Andric <dim at freebsd.org> wrote:
> 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/ ? :-)
The typo fairy is strong this day :) Thanks!
More information about the svn-src-all
mailing list