X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fascent.c;h=174a2118e7c2ba4aaa823b10c6f216cc4cc0ac6b;hb=e746ad785774de37a30302fef65f1c4aaf8698ab;hp=16f9104618207c85313f3e4f128e622fd4875c54;hpb=b165cd13cd30a30ac830df1f6f6fbd52474a6f64;p=collectd.git diff --git a/src/ascent.c b/src/ascent.c index 16f91046..174a2118 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 = ssnprintf(credentials, sizeof(credentials), "%s:%s", user, - (pass == NULL) ? "" : pass); + status = snprintf(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.");