aboutsummaryrefslogtreecommitdiffstats
path: root/stagit.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <[email protected]>2016-01-05 21:03:39 +0100
committerHiltjo Posthuma <[email protected]>2016-01-05 21:03:39 +0100
commit200ccad8b566c3705f3d3e5dd7d5456be85e6900 (patch)
tree90f6256243bdca4171f7cb7976e74a0e7d84c862 /stagit.c
parent444e41b315925181f3ead6f2c3dd1354475e90e3 (diff)
downloadstagit-200ccad8b566c3705f3d3e5dd7d5456be85e6900.tar.gz
stagit-200ccad8b566c3705f3d3e5dd7d5456be85e6900.zip
fix newline after header
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++) {