projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c406d1c
)
Directly pass the string instead of char * to Truncate util function. It will prevent...
author
Pierre Schweitzer
<pierre@reactos.org>
Sat, 7 Mar 2015 13:23:41 +0000
(14:23 +0100)
committer
Pierre Schweitzer
<pierre@reactos.org>
Sat, 7 Mar 2015 13:23:41 +0000
(14:23 +0100)
src/deps_log.cc
patch
|
blob
|
history
diff --git
a/src/deps_log.cc
b/src/deps_log.cc
index
bd47ebc
..
89c6023
100644
(file)
--- a/
src/deps_log.cc
+++ b/
src/deps_log.cc
@@
-275,7
+275,7
@@
bool DepsLog::Load(const string& path, State* state, string* err) {
}
fclose(f);
- if (!Truncate(path
.c_str()
, offset, err))
+ if (!Truncate(path, offset, err))
return false;
// The truncate succeeded; we'll just report the load error as a