X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fnginx.c;h=0da66ce2e94525902008090a31d3d148fb18a51a;hb=5ebc182261321f0781f38d8645bfc7c74353434c;hp=7bb307a3985bfe2a27dbf1fb4f9a9811a5ffd955;hpb=25824c65721f0f21cadf1607fad367c7e7831816;p=collectd.git diff --git a/src/nginx.c b/src/nginx.c index 7bb307a3..0da66ce2 100644 --- a/src/nginx.c +++ b/src/nginx.c @@ -122,8 +122,8 @@ static int init(void) { curl_easy_setopt(curl, CURLOPT_PASSWORD, (pass == NULL) ? "" : pass); #else static char credentials[1024]; - int status = snprintf(credentials, sizeof(credentials), "%s:%s", user, - pass == NULL ? "" : pass); + int status = ssnprintf(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."); return -1;