This commit is contained in:
2026-05-10 18:16:43 +02:00
parent ebd96aa8fb
commit 39193cdc9f

View File

@@ -17,8 +17,6 @@ inline bool file_exists(const char* path) {
/* path has to have at least 8 free chars at the end for glob */
int get_hwmon_dir(char* path) {
glob_t g;
// const size_t len = strlen(path);
// strcpy(&path[len], "/hwmon*"); // append the glob to the end of the path
strncat(path, "/hwmon*", 8);
if (glob(path, 0, nullptr, &g) == 0) {