From: Thomas Jarosch Date: Thu, 14 Oct 2010 13:31:16 +0000 (+0200) Subject: Fix user-agent issue: Use char* pointer instead of address of the std::string class X-Git-Tag: v1.1~42 X-Git-Url: http://developer.intra2net.com/git/?p=bpdyndnsd;a=commitdiff_plain;h=b2e85bb49018ad17c3c13210b64c95d92e558caf Fix user-agent issue: Use char* pointer instead of address of the std::string class --- diff --git a/src/httphelper.cpp b/src/httphelper.cpp index 3f33def..25130af 100644 --- a/src/httphelper.cpp +++ b/src/httphelper.cpp @@ -192,7 +192,7 @@ CURL* HTTPHelper::init_curl(string& curl_writedata_buff,char* curl_err_buff) if ( CurlInitError == CURLE_OK) CurlInitError = curl_easy_setopt(curl_easy_handle,CURLOPT_WRITEDATA,&curl_writedata_buff); if ( CurlInitError == CURLE_OK) - CurlInitError = curl_easy_setopt(curl_easy_handle,CURLOPT_USERAGENT,&user_agent); + CurlInitError = curl_easy_setopt(curl_easy_handle,CURLOPT_USERAGENT,user_agent.c_str()); if ( CurlInitError == CURLE_OK) CurlInitError = curl_easy_setopt(curl_easy_handle,CURLOPT_SSL_VERIFYHOST,0); if ( CurlInitError == CURLE_OK)