X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fwrite_http.c;fp=src%2Fwrite_http.c;h=1c270bdf886c72fbe091885edb761df07ab29a16;hb=be126043c2be20399d7670fe194645292018bde0;hp=d5c91d910e8efbd5abadeb8233d24803cca1269d;hpb=867ad628dc6fcd05bd584b605d7093cfc00c3d07;p=collectd.git diff --git a/src/write_http.c b/src/write_http.c index d5c91d91..1c270bdf 100644 --- a/src/write_http.c +++ b/src/write_http.c @@ -190,7 +190,7 @@ static int wh_callback_init(wh_callback_t *cb) /* {{{ */ return -1; } - ssnprintf(cb->credentials, credentials_size, "%s:%s", cb->user, + snprintf(cb->credentials, credentials_size, "%s:%s", cb->user, (cb->pass == NULL) ? "" : cb->pass); curl_easy_setopt(cb->curl, CURLOPT_USERPWD, cb->credentials); #endif @@ -369,7 +369,7 @@ static int wh_write_command(const data_set_t *ds, return status; } - command_len = (size_t)ssnprintf(command, sizeof(command), + command_len = (size_t)snprintf(command, sizeof(command), "PUTVAL %s interval=%.3f %s\r\n", key, CDTIME_T_TO_DOUBLE(vl->interval), values); if (command_len >= sizeof(command)) { @@ -791,7 +791,7 @@ static int wh_config_node(oconfig_item_t *ci) /* {{{ */ /* Nulls the buffer and sets ..._free and ..._fill. */ wh_reset_buffer(cb); - ssnprintf(callback_name, sizeof(callback_name), "write_http/%s", cb->name); + snprintf(callback_name, sizeof(callback_name), "write_http/%s", cb->name); DEBUG("write_http: Registering write callback '%s' with URL '%s'", callback_name, cb->location);