X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=commit.c;h=2f73cf3d9085a620bedd32e818942a11febab44f;hb=6511cce24b932eba33d8e13b54664673121a8b7e;hp=56192587afa7454e5db8c5ac3e4a937c1f0694ea;hpb=8c1f5f0f1f9c36ef5465512753efeff36758ba7d;p=git.git diff --git a/commit.c b/commit.c index 56192587..2f73cf3d 100644 --- a/commit.c +++ b/commit.c @@ -102,7 +102,7 @@ static unsigned long parse_commit_date(const char *buf) static struct commit_graft { unsigned char sha1[20]; int nr_parent; - unsigned char parent[][20]; /* more */ + unsigned char parent[0][20]; /* more */ } **commit_graft; static int commit_graft_alloc, commit_graft_nr; @@ -357,7 +357,7 @@ static int get_one_line(const char *msg, unsigned long len) static int add_user_info(const char *what, enum cmit_fmt fmt, char *buf, const char *line) { char *date; - unsigned int namelen; + int namelen; unsigned long time; int tz, ret;