diff --git a/src/mbpfan.c b/src/mbpfan.c
index 17dd759..f369c39 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)+1];
+ char hwmon_path[strlen(path_begin)+3];
sprintf(hwmon_path, "%s%d", path_begin, counter);
Fix buffer overflow in sprintf
150fcad08402632fe201c8f90bb8669dcc9e0915
Andrew Scott <andj.scott@gmail.com> · 2016-03-14T01:07 ·
browse files at this commit
parents:
10b9621