diff options
Diffstat (limited to 'url')
-rw-r--r-- | url/url_canon_relative.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/url/url_canon_relative.cc b/url/url_canon_relative.cc index 30956a6..84317f8 100644 --- a/url/url_canon_relative.cc +++ b/url/url_canon_relative.cc @@ -372,9 +372,8 @@ bool DoResolveRelativeHost(const char* base_url, // Parse the relative URL, just like we would for anything following a // scheme. url_parse::Parsed relative_parsed; // Everything but the scheme is valid. - url_parse::ParseAfterScheme(&relative_url[relative_component.begin], - relative_component.len, relative_component.begin, - &relative_parsed); + url_parse::ParseAfterScheme(relative_url, relative_component.end(), + relative_component.begin, &relative_parsed); // Now we can just use the replacement function to replace all the necessary // parts of the old URL with the new one. |