aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2011-03-09 14:02:42 -0800
committerDan Fandrich <dan@coneharvesters.com>2011-03-09 14:02:42 -0800
commita9aeedcdbeba4bf305ab7e2bf9b76818381d384e (patch)
tree955b1915132c031c47a1c277ac370093db285d4e
parentd6b9f76943cf3f2321ca8798dd4d8b863a756939 (diff)
Force setopt constants written by --libcurl to be long
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
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;