summaryrefslogtreecommitdiff
path: root/url.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2011-07-18 03:48:51 -0400
committerJunio C Hamano <gitster@pobox.com>2011-07-20 11:38:34 -0700
commit66c8448543432308e8fce5e3e04076e875410f67 (patch)
treeac99babf4737c855c36576a69254a17f5b5f6b2b /url.h
parentd79bcd68056250d7c03bf9b12728ee2fd85a0ab3 (diff)
downloadgit-66c8448543432308e8fce5e3e04076e875410f67.tar.gz
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>
Diffstat (limited to 'url.h')
-rw-r--r--url.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/url.h b/url.h
index 7100e3215a..abdaf6fa30 100644
--- a/url.h
+++ b/url.h
@@ -4,6 +4,7 @@
extern int is_url(const char *url);
extern int is_urlschemechar(int first_flag, int ch);
extern char *url_decode(const char *url);
+extern char *url_decode_mem(const char *url, int len);
extern char *url_decode_parameter_name(const char **query);
extern char *url_decode_parameter_value(const char **query);