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 <gitster@pobox.com>
This commit is contained in:
Brandon Casey 2008-11-13 14:20:37 -06:00 committed by Junio C Hamano
parent e9854a7672
commit d0f19d0471

View File

@ -968,7 +968,7 @@ static void add_ignore_packed(struct rev_info *revs, const char *name)
int num = ++revs->num_ignore_packed; int num = ++revs->num_ignore_packed;
revs->ignore_packed = xrealloc(revs->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-1] = name;
revs->ignore_packed[num] = NULL; revs->ignore_packed[num] = NULL;
} }