diff options
Diffstat (limited to 'commit.c')
| -rw-r--r-- | commit.c | 3 | 
1 files changed, 1 insertions, 2 deletions
| @@ -415,8 +415,7 @@ int find_commit_subject(const char *commit_buffer, const char **subject)  		p++;  	if (*p) {  		p = skip_blank_lines(p + 2); -		for (eol = p; *eol && *eol != '\n'; eol++) -			; /* do nothing */ +		eol = strchrnul(p, '\n');  	} else  		eol = p; | 
