Needed to work with git interpret-trailers. Since "line" is, of course, a line, it will always end with "\n\0" and therefore we can safely end on "\n". --- mailinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailinfo.c b/mailinfo.c index a489d9d0f..eadd0597f 100644 --- a/mailinfo.c +++ b/mailinfo.c @@ -661,7 +661,7 @@ static int is_scissors_line(const char *line) const char *first_nonblank = NULL, *last_nonblank = NULL; int visible, perforation = 0, in_perforation = 0; - for (c = line; *c; c++) { + for (c = line; *c != '\n'; c++) { if (isspace(*c)) { if (in_perforation) { perforation++; -- 2.12.3.3.g39c96af