X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fperl.c;h=0a4ae71d13ce0f0643a8e805d67854cb4835684a;hp=09e6e5aafaeccac5d6d6ab0cd4274c569f2df892;hb=48efd3deb4c9139fd060ff3d289896e9031bcc7c;hpb=25824c65721f0f21cadf1607fad367c7e7831816 diff --git a/src/perl.c b/src/perl.c index 09e6e5aa..0a4ae71d 100644 --- a/src/perl.c +++ b/src/perl.c @@ -863,9 +863,9 @@ static int oconfig_item2hv(pTHX_ oconfig_item_t *ci, HV *hash) { static char *get_module_name(char *buf, size_t buf_len, const char *module) { int status = 0; if (base_name[0] == '\0') - status = snprintf(buf, buf_len, "%s", module); + status = ssnprintf(buf, buf_len, "%s", module); else - status = snprintf(buf, buf_len, "%s::%s", base_name, module); + status = ssnprintf(buf, buf_len, "%s::%s", base_name, module); if ((status < 0) || ((unsigned int)status >= buf_len)) return NULL; return buf;