works
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user