cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl --libcurl option

From: Gisle Vanem <giva_at_bgnett.no>
Date: Fri, 26 Jan 2007 16:37:36 +0100

"Gisle Vanem" <giva_at_bgnett.no> wrote:

> The new "--libcurl" option on Win32 prints:
>
> curl_easy_setopt(hnd, CURLOPT_MAX_SEND_SPEED_LARGE, (curl_off_t)64d);
> curl_easy_setopt(hnd, CURLOPT_MAX_RECV_SPEED_LARGE, (curl_off_t)64d);
>
> I cannot see why it shouldn't print "(curl_off_t)0" since the code expands to:

Duh me; I see that lib/mprintf.c doesn't support the "%I64d" format at
all. What should we do about that? Add such support in mprintf.c or simply
use _snprintf() on Win32 (in _my_setopt())?

BTW. When mprintf.c sees an unknown format like "%I", shouldn't it simply print "%I"?

--gv
Received on 2007-01-26