X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fhddtemp.c;h=a7eaf3699f139ea7df470b01d42376f7433f255d;hp=3af9c0fa640433ff89cd3cc8e6cfb98e7372da5a;hb=1159cb5d383c55a80a0db100b8f7aadcf44740a5;hpb=307c875e5a78a2729fbbe1a588d232e9a129d75a diff --git a/src/hddtemp.c b/src/hddtemp.c index 3af9c0fa..a7eaf369 100644 --- a/src/hddtemp.c +++ b/src/hddtemp.c @@ -214,7 +214,7 @@ static int hddtemp_config(const char *key, const char *value) { } else if (strcasecmp(key, "Port") == 0) { int port = (int)(atof(value)); if ((port > 0) && (port <= 65535)) - ssnprintf(hddtemp_port, sizeof(hddtemp_port), "%i", port); + snprintf(hddtemp_port, sizeof(hddtemp_port), "%i", port); else sstrncpy(hddtemp_port, value, sizeof(hddtemp_port)); } else {