author | Jeff King <peff@peff.net> | |
Fri, 29 Jan 2010 10:31:30 +0000 (05:31 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 29 Jan 2010 17:56:12 +0000 (09:56 -0800) | ||
commit | 7b48c170931f35c07c3ce78023519846073152a1 | |
tree | 1f463ad3cdebbc0f45203921987085021a50be83 | tree | snapshot |
parent | dace5dd14166ebc2b55f46695d27dce0e64c6464 | commit | diff |
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>
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 | diff | blob | history |