cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Crash in curl

From: Linus Nielsen Feltzing <linus_at_haxx.se>
Date: Mon, 18 Feb 2008 09:03:10 +0100

Andreas Volz wrote:
> int Download::webget (const string &url, const string &filename)
> {
> long httpResponse;
>
> // specify URL to get
> curl_easy_setopt(m_curlHandle, CURLOPT_URL, url.c_str ());

If you are using version 7.16.4, this statement might cause a problem if
the c_str() method creates a temporary char pointer. However, 7.17.1
will not have that problem, since it copies the string.

Linus
Received on 2008-02-18