X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=commit.c;h=03436b1b077f3f83cebceb697f97c3ba5b26265c;hb=384f122b7c6dd2b52cc6029afee16560c38850ae;hp=f778bf4d6c4742406d051b3bceae5450f29720ac;hpb=9bee7aabcd74bf112fcdaf255551147feca8f66c;p=git.git diff --git a/commit.c b/commit.c index f778bf4d6..03436b1b0 100644 --- a/commit.c +++ b/commit.c @@ -997,7 +997,7 @@ static void pp_header(enum cmit_fmt fmt, len = linelen; if (fmt == CMIT_FMT_EMAIL) len = bound_rfc2047(linelen, encoding); - ALLOC_GROW(*buf_p, *ofs_p + len, *space_p); + ALLOC_GROW(*buf_p, *ofs_p + len + 80, *space_p); dst = *buf_p + *ofs_p; *ofs_p += add_user_info("Author", fmt, dst, line + 7, dmode, encoding); @@ -1008,7 +1008,7 @@ static void pp_header(enum cmit_fmt fmt, len = linelen; if (fmt == CMIT_FMT_EMAIL) len = bound_rfc2047(linelen, encoding); - ALLOC_GROW(*buf_p, *ofs_p + len, *space_p); + ALLOC_GROW(*buf_p, *ofs_p + len + 80, *space_p); dst = *buf_p + *ofs_p; *ofs_p += add_user_info("Commit", fmt, dst, line + 10, dmode, encoding);