From e83743d8839a9bfcf3835448cc7b1c39c6e356a7 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Mon, 29 Apr 2013 10:20:55 -0700 Subject: Fix Windows build more. --- src/util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v0.12