summaryrefslogtreecommitdiff
path: root/utils/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/file.c')
-rw-r--r--utils/file.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/file.c b/utils/file.c
index 888811004..6224d1c3c 100644
--- a/utils/file.c
+++ b/utils/file.c
@@ -136,7 +136,9 @@ static nserror posix_nsurl_to_path(struct nsurl *url, char **path_out)
return NSERROR_BAD_PARAMETER;
}
- res = url_unescape(lwc_string_data(urlpath), &path);
+ res = url_unescape(lwc_string_data(urlpath),
+ lwc_string_length(urlpath),
+ &path);
lwc_string_unref(urlpath);
if (res != NSERROR_OK) {
return res;