Don't allocate too much memory in quote_ref_url
commit7c1a9e7901a0e75eab8c7fb34d17c09652d47f7f
authorMike Hommey <mh@glandium.org>
Sat, 14 Jun 2008 10:02:22 +0000 (14 12:02 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 14 Jun 2008 19:53:09 +0000 (14 12:53 -0700)
tree0891898e4fc704e451d4e3c8ac075d48575b6117
parent66115d363a93b9e7c9b937773c0c30f81b766d45
Don't allocate too much memory in quote_ref_url

In c13b263, http_fetch_ref got "refs/" included in the ref passed to it,
which, incidentally, makes the allocation in quote_ref_url too big, now.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
http.c