diff --git a/crash_reporter/crash_collector.cc b/crash_reporter/crash_collector.cc index d39d6f48a..f36401558 100644 --- a/crash_reporter/crash_collector.cc +++ b/crash_reporter/crash_collector.cc @@ -316,9 +316,9 @@ FilePath CrashCollector::GetProcessPath(pid_t pid) { } bool CrashCollector::GetSymlinkTarget(const FilePath &symlink, - FilePath *target) { + FilePath *target) { int max_size = 32; - scoped_array buffer; + scoped_ptr buffer; while (true) { buffer.reset(new char[max_size + 1]); ssize_t size = readlink(symlink.value().c_str(), buffer.get(), max_size);