@matheusbsbs / matheus-bagliano / commits / d0f19d0471
Fork 0

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>

Brandon Casey committed Nov 13, 2008 at 14:20 UTC d0f19d0471792ace6d440c2789ce42227f07e69e
1 file changed +1 -1
revision.c
+1 -1
@@ -968,7 +968,7 @@ static void add_ignore_packed(struct rev_info *revs, const char *name)
968 int num = ++revs->num_ignore_packed;
969
970 revs->ignore_packed = xrealloc(revs->ignore_packed,
971 - sizeof(const char **) * (num + 1));
971 + sizeof(const char *) * (num + 1));
972 revs->ignore_packed[num-1] = name;
973 revs->ignore_packed[num] = NULL;
974 }