Skip to content

Commit a794a53

Browse files
committed
Merge branch 'gaul-double-free'
2 parents bd92a25 + a00c5b7 commit a794a53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mbpfan.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ t_sensors *retrieve_sensors()
121121
}
122122
}
123123

124-
path_begin = (char *) "/sys/devices/platform/coretemp.0/temp";
124+
path_begin = strdup("/sys/devices/platform/coretemp.0/temp");
125125

126126
} else {
127127

@@ -133,7 +133,7 @@ t_sensors *retrieve_sensors()
133133
}
134134
}
135135

136-
path_begin = (char *) "/sys/devices/platform/coretemp.0/hwmon/hwmon";
136+
path_begin = strdup("/sys/devices/platform/coretemp.0/hwmon/hwmon");
137137

138138
int counter;
139139
for (counter = 0; counter < 10; counter++) {

0 commit comments

Comments
 (0)