projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
write_http: Allow to set empty metrics prefix in KAIROSDB format
[collectd.git]
/
src
/
curl.c
diff --git
a/src/curl.c
b/src/curl.c
index
02761d2
..
35ec1f8
100644
(file)
--- a/
src/curl.c
+++ b/
src/curl.c
@@
-370,8
+370,8
@@
static int cc_page_init_curl(web_page_t *wp) /* {{{ */
return -1;
}
return -1;
}
- s
s
nprintf(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
curl_easy_setopt(wp->curl, CURLOPT_USERPWD, wp->credentials);
#endif
@@
-631,7
+631,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)
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;
if (wp->response_code) {
long response_code = 0;