On Wed, 16 Dec 2015 01:54:14 -0500
Steven Rostedt <rost...@goodmis.org> wrote:

> On Tue, 15 Dec 2015 22:44:14 -0500
> Steven Rostedt <rost...@goodmis.org> wrote:
> > 
> > Here's v2.
> >   
> 
> Here's v3. My tests found a bug in the code where I used snprintf()
> when I should have used sprintf().
> 

> +     if (cnt)
> +             memcpy(file_ptr, buf, cnt);
> +
> +     if (cnt < count)
> +             memcpy(file_append + idx, buf, count - cnt);

Bah! That should be "buf + cnt".

/me restarts his tests.

> +
> +     file_ptr += count;
> +     return count;
>

-- Steve
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to