summaryrefslogtreecommitdiff
blob: 38b6f33a2ba5c27c45423517d2547563d0b9abf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- ftpfs.c.old	2009-11-28 14:28:05.000000000 +0300
+++ ftpfs.c	2009-11-28 14:28:19.000000000 +0300
@@ -503,7 +503,7 @@
   
   curl_easy_setopt_or_die(fh->write_conn, CURLOPT_URL, fh->full_path);
   curl_easy_setopt_or_die(fh->write_conn, CURLOPT_UPLOAD, 1);
-  curl_easy_setopt_or_die(fh->write_conn, CURLOPT_INFILESIZE, -1);
+  curl_easy_setopt_or_die(fh->write_conn, CURLOPT_INFILESIZE, (curl_off_t)-1);
   curl_easy_setopt_or_die(fh->write_conn, CURLOPT_READFUNCTION, write_data_bg);
   curl_easy_setopt_or_die(fh->write_conn, CURLOPT_READDATA, fh);
   curl_easy_setopt_or_die(fh->write_conn, CURLOPT_LOW_SPEED_LIMIT, 1);