Index: url/url_canon_relative.cc |
diff --git a/url/url_canon_relative.cc b/url/url_canon_relative.cc |
index 8259056f5e515320b27479316c561afa8165f61c..851368d8d4847a10ccdd12fa6b807e70822326cb 100644 |
--- a/url/url_canon_relative.cc |
+++ b/url/url_canon_relative.cc |
@@ -288,7 +288,7 @@ bool DoResolveRelativePath(const char* base_url, |
// possible escaped characters. |
output->ReserveSizeIfNeeded( |
base_parsed.path.begin + |
- std::max(path.end(), std::max(query.end(), ref.end())) + 8); |
+ std::max(path.end(), std::max(query.end(), ref.end()))); |
output->Append(base_url, base_parsed.path.begin); |
if (path.len > 0) { |
@@ -406,7 +406,7 @@ bool DoResolveRelativeHost(const char* base_url, |
// base URL. |
output->ReserveSizeIfNeeded( |
replacements.components().Length() + |
- base_parsed.CountCharactersBefore(Parsed::USERNAME, false) + 8); |
+ base_parsed.CountCharactersBefore(Parsed::USERNAME, false)); |
return ReplaceStandardURL(base_url, base_parsed, replacements, |
query_converter, output, out_parsed); |
} |