summaryrefslogtreecommitdiff
path: root/frontends/windows/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/windows/file.c')
-rw-r--r--frontends/windows/file.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/frontends/windows/file.c b/frontends/windows/file.c
index 5c5b1f061..7583790e9 100644
--- a/frontends/windows/file.c
+++ b/frontends/windows/file.c
@@ -141,7 +141,9 @@ static nserror windows_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;