Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Apr 2013 00:43:13 +0200
From:      Ivan Voras <ivoras@freebsd.org>
To:        Dimitry Andric <dim@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:  <CAF-QHFXMnFN_k7mJ06-mi=BaMo0--Bjp4EqzEs=-ZzVoJbOtKQ@mail.gmail.com>
In-Reply-To: <A3DEE105-8443-4F77-8F35-99AA0E64D044@FreeBSD.org>
References:  <201304161958.r3GJwO2h084815@svn.freebsd.org> <A3DEE105-8443-4F77-8F35-99AA0E64D044@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 16 April 2013 22:01, Dimitry Andric <dim@freebsd.org> wrote:
> 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/ ? :-)

The typo fairy is strong this day :) Thanks!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF-QHFXMnFN_k7mJ06-mi=BaMo0--Bjp4EqzEs=-ZzVoJbOtKQ>