]> granicus.if.org Git - curl/commitdiff
added a cast to silent compiler warning with 64bit systems.
authorGunter Knauf <gk@gknw.de>
Thu, 6 Aug 2009 13:23:00 +0000 (13:23 +0000)
committerGunter Knauf <gk@gknw.de>
Thu, 6 Aug 2009 13:23:00 +0000 (13:23 +0000)
src/main.c

index ddca7332280aadb88fa635d08e7e79eb40800748..c9ccdf292e8d3bd83480b439a7d5a7b222b5820f 100644 (file)
@@ -2347,7 +2347,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
             postdata=strdup("");
           }
           else {
-            char *enc = curl_easy_escape(config->easy, postdata, size);
+            char *enc = curl_easy_escape(config->easy, postdata, (int)size);
             free(postdata); /* no matter if it worked or not */
             if(enc) {
               /* now make a string with the name from above and append the