Directly pass the string instead of char * to Truncate util function. It will prevent...
authorPierre Schweitzer <pierre@reactos.org>
Sat, 7 Mar 2015 13:23:41 +0000 (14:23 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 7 Mar 2015 13:23:41 +0000 (14:23 +0100)
src/deps_log.cc

index bd47ebc..89c6023 100644 (file)
@@ -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