mirror of
https://github.com/moparisthebest/curl
synced 2024-11-11 20:15:03 -05:00
Force setopt constants written by --libcurl to be long
This commit is contained in:
parent
d6b9f76943
commit
a9aeedcdbe
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user