We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1bdb61 commit e95e19aCopy full SHA for e95e19a
1 file changed
src/mbpfan.c
@@ -121,7 +121,7 @@ t_sensors *retrieve_sensors()
121
}
122
123
124
- path_begin = (char *) "/sys/devices/platform/coretemp.0/temp";
+ path_begin = strdup("/sys/devices/platform/coretemp.0/temp");
125
126
} else {
127
@@ -133,7 +133,7 @@ t_sensors *retrieve_sensors()
133
134
135
136
- path_begin = (char *) "/sys/devices/platform/coretemp.0/hwmon/hwmon";
+ path_begin = strdup("/sys/devices/platform/coretemp.0/hwmon/hwmon");
137
138
int counter;
139
for (counter = 0; counter < 10; counter++) {
0 commit comments