fix off-by-one allocation error
commit7b48c170931f35c07c3ce78023519846073152a1
authorJeff King <peff@peff.net>
Fri, 29 Jan 2010 10:31:30 +0000 (29 05:31 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Jan 2010 17:56:12 +0000 (29 09:56 -0800)
tree1f463ad3cdebbc0f45203921987085021a50be83
parentdace5dd14166ebc2b55f46695d27dce0e64c6464
fix off-by-one allocation error

Caught by valgrind in t5516. Reading the code shows we
malloc enough for our string, but not trailing NUL.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-push.c