url: decode buffers that are not NUL-terminated
commit66c8448543432308e8fce5e3e04076e875410f67
authorJeff King <peff@peff.net>
Mon, 18 Jul 2011 07:48:51 +0000 (18 03:48 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Jul 2011 18:38:34 +0000 (20 11:38 -0700)
treeac99babf4737c855c36576a69254a17f5b5f6b2b
parentd79bcd68056250d7c03bf9b12728ee2fd85a0ab3
url: decode buffers that are not NUL-terminated

The url_decode function needs only minor tweaks to handle
arbitrary buffers. Let's do those tweaks, which cleans up an
unreadable mess of temporary strings in http.c.

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