| Index: url/url_canon_relative.cc
|
| diff --git a/url/url_canon_relative.cc b/url/url_canon_relative.cc
|
| index 30956a633f7b3ee79ca3a74292ec77026c73a609..84317f8009488b40ebcf5052167dba91d6ef5519 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.
|
|
|