From 200ccad8b566c3705f3d3e5dd7d5456be85e6900 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Tue, 5 Jan 2016 21:03:39 +0100 Subject: [PATCH] fix newline after header --- stagit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stagit.c b/stagit.c index 92107cf..28be94c 100644 --- a/stagit.c +++ b/stagit.c @@ -410,7 +410,7 @@ printshowfile(struct commitinfo *ci) break; fputs("", fp); - xmlencode(fp, hunk->header, strcspn(hunk->header, "\n")); + xmlencode(fp, hunk->header, hunk->header_len); fputs("", fp); for (k = 0; ; k++) { -- libgit2 1.1.1