X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fnginx.c;h=f212461be94799b48c20f9014ba960215d1e6953;hb=f81a5a84d3d5fc941b624c28b1ab70971cc23ac9;hp=0f1da0aebdfeb522f15182b91255e5b2ebef12ff;hpb=b165cd13cd30a30ac830df1f6f6fbd52474a6f64;p=collectd.git diff --git a/src/nginx.c b/src/nginx.c index 0f1da0ae..f212461b 100644 --- a/src/nginx.c +++ b/src/nginx.c @@ -122,7 +122,7 @@ static int init(void) { curl_easy_setopt(curl, CURLOPT_PASSWORD, (pass == NULL) ? "" : pass); #else static char credentials[1024]; - int status = ssnprintf(credentials, sizeof(credentials), "%s:%s", user, + int status = snprintf(credentials, sizeof(credentials), "%s:%s", user, pass == NULL ? "" : pass); if ((status < 0) || ((size_t)status >= sizeof(credentials))) { ERROR("nginx plugin: Credentials would have been truncated.");