X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcurl.c;h=288c974e44b16f2d585d09ea2390abd5799e1ab4;hb=affa67ac016775fbc685ca5fe547064991444f33;hp=cde383d38a277283e9a59a735957d61285edb5db;hpb=e0ec7ff9351918c400b88890d1be2d4de7b0dedb;p=collectd.git diff --git a/src/curl.c b/src/curl.c index cde383d3..288c974e 100644 --- a/src/curl.c +++ b/src/curl.c @@ -368,8 +368,8 @@ static int cc_page_init_curl(web_page_t *wp) /* {{{ */ return -1; } - ssnprintf(wp->credentials, credentials_size, "%s:%s", wp->user, - (wp->pass == NULL) ? "" : wp->pass); + snprintf(wp->credentials, credentials_size, "%s:%s", wp->user, + (wp->pass == NULL) ? "" : wp->pass); curl_easy_setopt(wp->curl, CURLOPT_USERPWD, wp->credentials); #endif @@ -623,7 +623,7 @@ static int cc_read_page(web_page_t *wp) /* {{{ */ if (wp->response_time) cc_submit_response_time(wp, CDTIME_T_TO_DOUBLE(cdtime() - start)); if (wp->stats != NULL) - curl_stats_dispatch(wp->stats, wp->curl, hostname_g, "curl", wp->instance); + curl_stats_dispatch(wp->stats, wp->curl, NULL, "curl", wp->instance); if (wp->response_code) { long response_code = 0;