X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fhddtemp.c;h=a7eaf3699f139ea7df470b01d42376f7433f255d;hb=0d9f395599348e735e6f461e1c328293bef0d060;hp=3af9c0fa640433ff89cd3cc8e6cfb98e7372da5a;hpb=9655d4a6d9fa2c4f02032759b831e93933d68bd9;p=collectd.git 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 {