mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-30 22:24:56 +00:00
Use secure API if available.
This commit is contained in:
parent
04c5a9c083
commit
78c34af016
@ -55,7 +55,7 @@ int p_ftruncate(int fd, git_off_t size)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(__MINGW32__)
|
#if !defined(__MINGW32__) || defined(MINGW_HAS_SECURE_API)
|
||||||
return ((_chsize_s(fd, size) == 0) ? 0 : -1);
|
return ((_chsize_s(fd, size) == 0) ? 0 : -1);
|
||||||
#else
|
#else
|
||||||
/* TODO MINGW32 Find a replacement for _chsize() that handles big files. */
|
/* TODO MINGW32 Find a replacement for _chsize() that handles big files. */
|
||||||
|
Loading…
Reference in New Issue
Block a user