sensors: Trim the child name.

Missed that :)
This commit is contained in:
Alastair Poole 2021-02-08 23:31:22 +00:00
parent 9a0a18b1f1
commit 860518d379
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ system_sensors_thermal_get(int *sensor_count)
snprintf(buf, sizeof(buf), "%s/temp%d_label", link, id);
sensor->child_name = file_contents(buf);
if (sensor->child_name)
strimmer(sensor->name);
strimmer(sensor->child_name);
snprintf(buf, sizeof(buf), "%s/temp%d_input", link, id);
sensor->path = strdup(buf);