Code

fetch--tool: fix uninitialized buffer when reading from stdin
authorJunio C Hamano <junkio@cox.net>
Mon, 26 Feb 2007 19:37:43 +0000 (11:37 -0800)
committerJunio C Hamano <junkio@cox.net>
Wed, 28 Feb 2007 00:12:23 +0000 (16:12 -0800)
commitdec56c8cf1da06fe9ff4c9d3a26f74fb1ddd2fc6
treef7d572c6ba629e81ad156d6c83e1cdd3b4644f05
parentdcf01c6e6b9f63d6f6239a6c6ff9f6373e4c5ff8
fetch--tool: fix uninitialized buffer when reading from stdin

The original code allocates too much space and forgets to NUL
terminate the string.

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