From fa2e3b778465cd496aedde8e187038835a765c4f Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 24 Jul 2016 13:59:30 +0100 Subject: URL unescape: return the new length to the caller. The avoids situations were we threw away the length, only for the caller to have to strlen the returned string. Note, there seems to be a case of the amiga front end writing beyond end of allocation. Added a TODO for now. --- test/llcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/llcache.c') diff --git a/test/llcache.c b/test/llcache.c index df51386a5..8aae357b0 100644 --- a/test/llcache.c +++ b/test/llcache.c @@ -95,7 +95,7 @@ char *url_to_path(const char *url) char *url_path; char *path = NULL; - if (url_unescape(url, 0, &url_path) == NSERROR_OK) { + if (url_unescape(url, 0, NULL, &url_path) == NSERROR_OK) { /* return the absolute path including leading / */ path = strdup(url_path + (FILE_SCHEME_PREFIX_LEN - 1)); free(url_path); -- cgit v1.2.3