diff options
author | Nico Weber <thakis@chromium.org> | 2013-04-29 17:20:55 (GMT) |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2013-04-29 17:20:55 (GMT) |
commit | e83743d8839a9bfcf3835448cc7b1c39c6e356a7 (patch) | |
tree | 049948d42f65fe6ff12e14f02ee3250de433260a /src/util.cc | |
parent | 2ba0a14cabe0d45ef1a484a58c5f54a29155b645 (diff) | |
download | Ninja-e83743d8839a9bfcf3835448cc7b1c39c6e356a7.zip Ninja-e83743d8839a9bfcf3835448cc7b1c39c6e356a7.tar.gz Ninja-e83743d8839a9bfcf3835448cc7b1c39c6e356a7.tar.bz2 |
Fix Windows build more.
Diffstat (limited to 'src/util.cc')
-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); |