builtin-branch: use strbuf in rename_branch()
commitda3f78a29cafee487c107a81c442213fa41463f7
authorMiklos Vajna <vmiklos@frugalware.org>
Mon, 17 Nov 2008 20:48:37 +0000 (17 21:48 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Nov 2008 23:46:42 +0000 (18 15:46 -0800)
tree53cc35445e094d49a24599cf890f4354499d34a5
parentd3f9f9a92eca0dd6379d836a083e823cc5e3eeb6
builtin-branch: use strbuf in rename_branch()

In case the length of branch name is greather then PATH_MAX-11, 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