Skip to content

Commit

Permalink
Merge pull request #923 from HeisSpiter/master
Browse files Browse the repository at this point in the history
Directly pass the string instead of char * to Truncate util function. It...
  • Loading branch information
nico committed Mar 8, 2015
2 parents c406d1c + 70e7007 commit abc612d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deps_log.cc
Expand Up @@ -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
Expand Down

0 comments on commit abc612d

Please sign in to comment.