Chromium Code Reviews| Index: net/ftp/ftp_network_transaction.cc |
| diff --git a/net/ftp/ftp_network_transaction.cc b/net/ftp/ftp_network_transaction.cc |
| index e7835902f7f9e911ede825a68f9388080d6b4711..8671cec87a5e1a438d75e386b83e0d1722d3e42c 100644 |
| --- a/net/ftp/ftp_network_transaction.cc |
| +++ b/net/ftp/ftp_network_transaction.cc |
| @@ -913,8 +913,7 @@ int FtpNetworkTransaction::DoDataRead() { |
| } |
| int FtpNetworkTransaction::DoDataReadComplete(int result) { |
| - DLOG(INFO) << read_data_buf_->data(); // The read_data_buf_ is NULL |
| - // terminated string. |
| + DLOG(INFO) << std::string(read_data_buf_->data(), result); |
|
wtc
2009/07/30 18:02:32
This should be protected with if (result > 0).
Bu
|
| return result; |
| } |