Commit a9aeedcd authored by Dan Fandrich's avatar Dan Fandrich
Browse files

Force setopt constants written by --libcurl to be long

parent d6b9f769
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;