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