Index: chrome/browser/safe_browsing/protocol_parser.cc |
diff --git a/chrome/browser/safe_browsing/protocol_parser.cc b/chrome/browser/safe_browsing/protocol_parser.cc |
index 47ef41d6cf6d77418e3b95aff562647c2c57e155..59a98db48731f4f7b7e6eff9a931234f82b5430e 100644 |
--- a/chrome/browser/safe_browsing/protocol_parser.cc |
+++ b/chrome/browser/safe_browsing/protocol_parser.cc |
@@ -199,7 +199,7 @@ bool SafeBrowsingProtocolParser::ParseChunk(const std::string& list_name, |
while (remaining > 0) { |
std::string cmd_line; |
- if (!GetLine(chunk_data, length, &cmd_line)) |
+ if (!GetLine(chunk_data, remaining, &cmd_line)) |
return false; // Error: bad chunk format! |
const int line_len = static_cast<int>(cmd_line.length()) + 1; |