Code

builtin-branch: use strbuf in delete_branches()
authorMiklos Vajna <vmiklos@frugalware.org>
Mon, 17 Nov 2008 20:48:35 +0000 (21:48 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Nov 2008 23:40:02 +0000 (15:40 -0800)
commit3c59c50d76cd479caf14cab73fdb09b68597d5e5
tree79749fcfafcf3a65d13e7a79fb314069436fb8e9
parent47577456bfe61c32df73a7cf4a388f007af3b18f
builtin-branch: use strbuf in delete_branches()

In case the length of branch name is greather then PATH_MAX-7, we write
to unallocated memory otherwise.

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-branch.c