This commit is contained in:
Wolfgang Hottgenroth 2021-02-10 15:28:17 +01:00
parent e5b6f33f80
commit fa1654259e
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -172,7 +172,7 @@ int initForwarder(config_t *cfg, t_forwarderHandle *handle) {
return -3;
}
int res = snprintf(handle->influxUrl, sizeof(handle->influxUrl,
int res = snprintf(handle->influxUrl, sizeof(handle->influxUrl),
"http://%s:%d/write?db=%s&precision=s",
handle->influxServer, handle->influxPort, handle->influxDatabase);
if (res > sizeof(handle->influxUrl)) {