summaryrefslogtreecommitdiffstats
path: root/src/download.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/download.c')
-rw-r--r--src/download.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/download.c b/src/download.c
index 8bae52f..e09d911 100644
--- a/src/download.c
+++ b/src/download.c
@@ -140,7 +140,7 @@ int download_to_file(const char* url, const char* filename, int enable_progress)
curl_easy_cleanup(handle);
#ifdef WIN32
- uint64_t sz = _ftelli64(f);
+ uint64_t sz = _lseeki64(fileno(f), 0, SEEK_CUR);
#else
off_t sz = ftello(f);
#endif