Index: remoting/host/setup/daemon_controller_delegate_win.cc |
diff --git a/remoting/host/setup/daemon_controller_delegate_win.cc b/remoting/host/setup/daemon_controller_delegate_win.cc |
index baab288c72af23389c45d6b6a6ab6fbacc5a96c2..91e7267928e230101922872fcbb5a37d7078da0d 100644 |
--- a/remoting/host/setup/daemon_controller_delegate_win.cc |
+++ b/remoting/host/setup/daemon_controller_delegate_win.cc |
@@ -68,7 +68,8 @@ const char* const kUnprivilegedConfigKeys[] = { |
bool ReadConfig(const base::FilePath& filename, |
scoped_ptr<base::DictionaryValue>* config_out) { |
std::string file_content; |
- if (!base::ReadFileToString(filename, &file_content, kMaxConfigFileSize)) { |
+ if (!base::ReadFileToStringWithMaxSize(filename, &file_content, |
+ kMaxConfigFileSize)) { |
PLOG(ERROR) << "Failed to read '" << filename.value() << "'."; |
return false; |
} |