aboutsummaryrefslogtreecommitdiff
path: root/tools/gator/daemon/Hwmon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gator/daemon/Hwmon.cpp')
-rw-r--r--tools/gator/daemon/Hwmon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gator/daemon/Hwmon.cpp b/tools/gator/daemon/Hwmon.cpp
index 94752158436..07925680c1f 100644
--- a/tools/gator/daemon/Hwmon.cpp
+++ b/tools/gator/daemon/Hwmon.cpp
@@ -73,7 +73,7 @@ HwmonCounter::HwmonCounter(HwmonCounter *next, int key, const sensors_chip_name
len = snprintf(NULL, 0, "hwmon_%s_%d", chip_name, feature->number) + 1;
name = new char[len];
- len = snprintf(name, len, "hwmon_%s_%d", chip_name, feature->number);
+ snprintf(name, len, "hwmon_%s_%d", chip_name, feature->number);
delete [] chip_name;