diff options
-rw-r--r-- | src/util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cc b/src/util.cc index e78dda3..127f8b1 100644 --- a/src/util.cc +++ b/src/util.cc @@ -359,7 +359,7 @@ string ElideMiddle(const string& str, size_t width) { bool Truncate(const string& path, size_t size, string* err) { #ifdef _WIN32 int fh; - fh = _sopen(kTestFilename, _O_RDWR | _O_CREAT, _SH_DENYNO, + fh = _sopen(path.c_str(), _O_RDWR | _O_CREAT, _SH_DENYNO, _S_IREAD | _S_IWRITE); int success = _chsize(fh, size); _close(fh); |