Code

commit-tree: do not overflow MAXPARENT
authorJunio C Hamano <junkio@cox.net>
Fri, 22 Dec 2006 07:49:13 +0000 (23:49 -0800)
committerJunio C Hamano <junkio@cox.net>
Fri, 22 Dec 2006 07:49:13 +0000 (23:49 -0800)
commit2295e8d0c4cec41fbe257ddb957516a7c1a139df
tree91c2f64c8d95b9857e574239218cb63be8b51e3a
parentfa39b6b5b11f9b580c515a7b4a8e4eb8eaa79b75
commit-tree: do not overflow MAXPARENT

We have a static allocation of MAXPARENT, but that limit was not
enforced, other than by a lucky invocation of the program segfaulting.

Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-commit-tree.c