diff --git a/src/mbpfan.c b/src/mbpfan.c
index f369c39..96ae841 100644
--- a/src/mbpfan.c
+++ b/src/mbpfan.c
@@ -129,7 +129,7 @@ t_sensors *retrieve_sensors()
int counter;
for (counter = 0; counter < 10; counter++) {
- char hwmon_path[strlen(path_begin)+3];
+ char hwmon_path[strlen(path_begin)+2];
sprintf(hwmon_path, "%s%d", path_begin, counter);
Use only 1 extra character for counter
2446a120ee6021d5b2f18696e64ffc98314ed85d
Andrew Scott <andj.scott@gmail.com> · 2016-03-17T12:03 ·
browse files at this commit
parents:
150fcad