| Index: content/browser/net/url_request_abort_on_end_job.cc
|
| diff --git a/content/browser/net/url_request_abort_on_end_job.cc b/content/browser/net/url_request_abort_on_end_job.cc
|
| index 00592f9ae565ff313953bce3d289cdb4f81cee0c..609d7bbdc027ef683042424e3345833807855199 100644
|
| --- a/content/browser/net/url_request_abort_on_end_job.cc
|
| +++ b/content/browser/net/url_request_abort_on_end_job.cc
|
| @@ -90,7 +90,7 @@ bool URLRequestAbortOnEndJob::ReadRawData(net::IOBuffer* buf,
|
| const int max_bytes,
|
| int* bytes_read) {
|
| if (!sent_data_) {
|
| - *bytes_read = std::max(size_t(max_bytes), sizeof(kPageContent));
|
| + *bytes_read = std::min(size_t(max_bytes), sizeof(kPageContent));
|
| std::memcpy(buf->data(), kPageContent, *bytes_read);
|
| sent_data_ = true;
|
| return true;
|
|
|