/* inet_ntoa() returns a pointer to a statically allocated buffer
* I hope non-glibc systems behave the same */
- len = snprintf (pi, size, "%s_%s%u", inet_ntoa (addr),
+ len = ssnprintf (pi, size, "%s_%s%u", inet_ntoa (addr),
(se->protocol == IPPROTO_TCP) ? "TCP" : "UDP",
ntohs (se->port));
/* inet_ntoa() returns a pointer to a statically allocated buffer
* I hope non-glibc systems behave the same */
- len = snprintf (ti, size, "%s_%u", inet_ntoa (addr),
+ len = ssnprintf (ti, size, "%s_%u", inet_ntoa (addr),
ntohs (de->port));
if ((0 > len) || (size <= len)) {
strcpy (vl.host, hostname_g);
strcpy (vl.plugin, "ipvs");
- strncpy (vl.plugin_instance, pi, sizeof (vl.plugin_instance));
+ sstrncpy (vl.plugin_instance, pi, sizeof (vl.plugin_instance));
strcpy (vl.type, "connections");
- strncpy (vl.type_instance, (NULL != ti) ? ti : "total",
+ sstrncpy (vl.type_instance, (NULL != ti) ? ti : "total",
sizeof (vl.type_instance));
plugin_dispatch_values (&vl);
strcpy (vl.host, hostname_g);
strcpy (vl.plugin, "ipvs");
- strncpy (vl.plugin_instance, pi, sizeof (vl.plugin_instance));
- strncpy (vl.type, t, sizeof (vl.type));
- strncpy (vl.type_instance, (NULL != ti) ? ti : "total",
+ sstrncpy (vl.plugin_instance, pi, sizeof (vl.plugin_instance));
+ sstrncpy (vl.type, t, sizeof (vl.type));
+ sstrncpy (vl.type_instance, (NULL != ti) ? ti : "total",
sizeof (vl.type_instance));
plugin_dispatch_values (&vl);