From: Brandon Casey Date: Thu, 13 Nov 2008 20:20:37 +0000 (-0600) Subject: revision.c: use proper data type in call to sizeof() within xrealloc X-Git-Tag: v1.6.1-rc1~7^2~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d0f19d0471792ace6d440c2789ce42227f07e69e;p=git.git revision.c: use proper data type in call to sizeof() within xrealloc A type char** was being used instead of char*. Signed-off-by: Junio C Hamano --- diff --git a/revision.c b/revision.c index 270294af8..45fd7a366 100644 --- a/revision.c +++ b/revision.c @@ -968,7 +968,7 @@ static void add_ignore_packed(struct rev_info *revs, const char *name) int num = ++revs->num_ignore_packed; revs->ignore_packed = xrealloc(revs->ignore_packed, - sizeof(const char **) * (num + 1)); + sizeof(const char *) * (num + 1)); revs->ignore_packed[num-1] = name; revs->ignore_packed[num] = NULL; }