Subject: Re: [PATCH 1/7] revert: fix off by one read when searching the end of a commit subject

From: Jonathan Nieder <[email-masked]>
Date: Thu, 22 Jul 2010 18:00:00 -0500

Christian Couder wrote:

> +++ b/builtin/revert.c
> @@ -131,7 +131,7 @@ static int get_message(const char *raw_message, struct commit_message *out)
>  		p++;
>  	if (*p) {
>  		p += 2;
> -		for (eol = p + 1; *eol && *eol != '\n'; eol++)
> +		for (eol = p; *eol && *eol != '\n'; eol++)
>  			; /* do nothing */
>  	} else
>  		eol = p;

Good catch.  For what it’s worth, this and the rest of the series is

Acked-by: Jonathan Nieder <[email-masked]>

Thanks.