]> granicus.if.org Git - cgit/commitdiff
parsing.c: Remove leading space from committer
authorLukas Fleischer <cgit@cryptocrack.de>
Wed, 15 Jan 2014 22:09:08 +0000 (23:09 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 15 Jan 2014 23:53:08 +0000 (00:53 +0100)
This did not really break anything in the past since spaces are ignored
when rendering HTML. Remove the preceding space anyway to prevent from
potential future problems.

Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
parsing.c

index 0062550d215dea7d585077e7aa040a69aa33cea8..599f61ead66d5c9c4f3c99cf4493d5af691367c2 100644 (file)
--- a/parsing.c
+++ b/parsing.c
@@ -156,7 +156,7 @@ struct commitinfo *cgit_parse_commit(struct commit *commit)
        }
 
        if (p && !prefixcmp(p, "committer ")) {
-               p = parse_user(p + 9, &ret->committer, &ret->committer_email,
+               p = parse_user(p + 10, &ret->committer, &ret->committer_email,
                        &ret->committer_date);
        }