summaryrefslogtreecommitdiffstats
path: root/src/deps_log.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/deps_log.cc')
-rw-r--r--src/deps_log.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/deps_log.cc b/src/deps_log.cc
index c52503b..9866540 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.