Code

avoid off-by-one error in run_upload_archive
authorJochen Voss <voss@seehuhn.de>
Sat, 28 Jun 2008 16:04:24 +0000 (17:04 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 28 Jun 2008 20:43:21 +0000 (13:43 -0700)
commit74d817cf8cf68104564cf6c93c1361f66dad1901
treef0c09283b2cb90a64ad50d402943cf42807879b7
parent7ac749c96d143ba4f76723959892cbaddbe8ed07
avoid off-by-one error in run_upload_archive

Make sure that buf has enough space to store the trailing \0 of
the command line argument, too.

Signed-off-by: Jochen Voss <voss@seehuhn.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-upload-archive.c