diff options
Diffstat (limited to 'src/deps_log.cc')
-rw-r--r-- | src/deps_log.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/deps_log.cc b/src/deps_log.cc index 6a48d50..8dc6e69 100644 --- a/src/deps_log.cc +++ b/src/deps_log.cc @@ -215,10 +215,8 @@ bool DepsLog::Load(const string& path, State* state, string* err) { } fclose(f); - if (truncate(path.c_str(), offset) < 0) { - *err = strerror(errno); + if (!Truncate(path.c_str(), offset, err)) return false; - } // The truncate succeeded; we'll just report the load error as a // warning because the build can proceed. |