aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stagit.c2
1 files changed, 1 insertions, 1 deletions
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("<span class=\"h\">", fp);
- xmlencode(fp, hunk->header, strcspn(hunk->header, "\n"));
+ xmlencode(fp, hunk->header, hunk->header_len);
fputs("</span>", fp);
for (k = 0; ; k++) {