Commit 78c34af0 by Matti Virolainen Committed by Tony Kelman

Use secure API if available.

parent 04c5a9c0
......@@ -55,7 +55,7 @@ int p_ftruncate(int fd, git_off_t size)
return -1;
}
#if !defined(__MINGW32__)
#if !defined(__MINGW32__) || defined(MINGW_HAS_SECURE_API)
return ((_chsize_s(fd, size) == 0) ? 0 : -1);
#else
/* TODO MINGW32 Find a replacement for _chsize() that handles big files. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment