Re: [GIT PULL] scripts: recordmcount: break hardlinks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 16 Dec 2015 01:54:14 -0500
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> On Tue, 15 Dec 2015 22:44:14 -0500
> Steven Rostedt <rostedt@xxxxxxxxxxx> 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]