mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-26 00:09:41 +03:00
nsurl: Fix parent path length.
This commit is contained in:
parent
82e74efeab
commit
2503b17f02
@ -916,7 +916,7 @@ nserror nsurl_parent(const nsurl *url, nsurl **new_url)
|
||||
} else if (old_path_len == new_path_len) {
|
||||
lwc_path = lwc_string_ref(url->components.path);
|
||||
} else {
|
||||
if (lwc_intern_string(path, old_path_len - new_path_len,
|
||||
if (lwc_intern_string(path, new_path_len,
|
||||
&lwc_path) != lwc_error_ok) {
|
||||
free(*new_url);
|
||||
return NSERROR_NOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user