diff options
Diffstat (limited to 'chrome/common/logging_chrome.cc')
-rw-r--r-- | chrome/common/logging_chrome.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/common/logging_chrome.cc b/chrome/common/logging_chrome.cc index a1963ce..9bbb878 100644 --- a/chrome/common/logging_chrome.cc +++ b/chrome/common/logging_chrome.cc @@ -171,9 +171,9 @@ FilePath SetUpSymlinkIfNeeded(const FilePath& symlink_path, bool new_log) { } } else { char buf[1024]; - size_t count = readlink(target_path.value().c_str(), buf, arraysize(buf)); + size_t count = readlink(target_path.value().c_str(), buf, sizeof(buf)); if (count > 0) { - target_path = FilePath(FilePath::StringType(buf, count)); + target_path = FilePath(FilePath::StringType(buf)); } else { PLOG(ERROR) << "Unable to read symlink " << symlink_path.value(); } |