X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=builtin-log.c;h=b9035ab7997612a91cd032e3cb1bcd5296585768;hb=80583c0ef61cc966c7eee79cf3623a83197e19b8;hp=0aede7683986aff131f9278a968c84622c01181b;hpb=90ac368afd75c9a53c6d953a693380369a41f8db;p=thirdparty%2Fgit.git diff --git a/builtin-log.c b/builtin-log.c index 0aede76839..b9035ab799 100644 --- a/builtin-log.c +++ b/builtin-log.c @@ -742,11 +742,13 @@ int cmd_cherry(int argc, const char **argv, const char *prefix) sign = '-'; if (verbose) { - static char buf[16384]; + char *buf = NULL; + unsigned long buflen = 0; pretty_print_commit(CMIT_FMT_ONELINE, commit, ~0, - buf, sizeof(buf), 0, NULL, NULL, 0); + &buf, &buflen, 0, NULL, NULL, 0); printf("%c %s %s\n", sign, sha1_to_hex(commit->object.sha1), buf); + free(buf); } else { printf("%c %s\n", sign,