X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fascent.c;h=6240e31960d0b6ad5f48a0aa8289fc603bf5e23d;hp=223586589c6703fb8235c667ce648384a55be117;hb=48efd3deb4c9139fd060ff3d289896e9031bcc7c;hpb=733fc645b6389d1f42aef8f1c1631f1db7d58196 diff --git a/src/ascent.c b/src/ascent.c index 22358658..6240e319 100644 --- a/src/ascent.c +++ b/src/ascent.c @@ -26,8 +26,8 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" +#include "utils/common/common.h" #include #include @@ -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.");