1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

Force setopt constants written by --libcurl to be long

This commit is contained in:
Dan Fandrich 2011-03-09 14:02:42 -08:00
parent d6b9f76943
commit a9aeedcdbe

View File

@ -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;