From a9aeedcdbeba4bf305ab7e2bf9b76818381d384e Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Wed, 9 Mar 2011 14:02:42 -0800 Subject: [PATCH] Force setopt constants written by --libcurl to be long --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 8a1fab8bc..307070f8b 100644 --- a/src/main.c +++ b/src/main.c @@ -4186,7 +4186,7 @@ static CURLcode _my_setopt(CURL *curl, bool str, struct Configurable *config, if(tag < CURLOPTTYPE_OBJECTPOINT) { long lval = va_arg(arg, long); - snprintf(value, sizeof(value), "%ld", lval); + snprintf(value, sizeof(value), "%ldL", lval); ret = curl_easy_setopt(curl, tag, lval); if(!lval) skip = TRUE;