diff options
Diffstat (limited to 'remoting/host')
-rw-r--r-- | remoting/host/setup/daemon_controller_delegate_win.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/remoting/host/setup/daemon_controller_delegate_win.cc b/remoting/host/setup/daemon_controller_delegate_win.cc index baab288..91e7267 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; } |