diff options
context:
space:
mode:
Diffstat (limited to 'source/parsing.c')
-rw-r--r--source/parsing.c2
1 file changed, 1 insertion, 1 deletion
diff --git a/source/parsing.c b/source/parsing.c
index 587f44d..5fde25d 100644
--- a/source/parsing.c
+++ b/source/parsing.c
@@ -194,7 +194,7 @@ struct commitinfo *cgit_parse_commit(struct commit *commit)
if (p && skip_prefix(p, "encoding ", &p)) {
eol = strchr(p, '\n');
if (eol) {
- info->msg_encoding = substr(p, eol + 1);
+ info->msg_encoding = substr(p, eol);
p = eol + 1;
}
}