Chromium Code Reviews| Index: url/url_canon.h |
| diff --git a/url/url_canon.h b/url/url_canon.h |
| index ff66c6e3086172730eec5112cd4a8899d1a8afcc..d093f359fe18f244184b1163311b6fa8b4ac2e97 100644 |
| --- a/url/url_canon.h |
| +++ b/url/url_canon.h |
| @@ -118,8 +118,9 @@ class CanonOutputT { |
| } |
| void ReserveSizeIfNeeded(int estimated_size) { |
| + // Reserve a bit extra to account for escaped chars. |
| if (estimated_size > buffer_len_) |
| - Resize(estimated_size); |
| + Resize(estimated_size + 8); |
| } |
| protected: |