X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fascent.c;h=6240e31960d0b6ad5f48a0aa8289fc603bf5e23d;hp=e5589bf68b016e20d4f908752a30ccc5073bd7c2;hb=48efd3deb4c9139fd060ff3d289896e9031bcc7c;hpb=25824c65721f0f21cadf1607fad367c7e7831816 diff --git a/src/ascent.c b/src/ascent.c index e5589bf6..6240e319 100644 --- a/src/ascent.c +++ b/src/ascent.c @@ -499,8 +499,8 @@ static int ascent_init(void) /* {{{ */ static char credentials[1024]; int status; - status = snprintf(credentials, sizeof(credentials), "%s:%s", user, - (pass == NULL) ? "" : pass); + status = ssnprintf(credentials, sizeof(credentials), "%s:%s", user, + (pass == NULL) ? "" : pass); if ((status < 0) || ((size_t)status >= sizeof(credentials))) { ERROR("ascent plugin: ascent_init: Returning an error because the " "credentials have been truncated.");