diff options
author | PA4WDH | 2024-08-25 16:57:08 +0200 |
---|---|---|
committer | PA4WDH | 2024-08-25 16:57:08 +0200 |
commit | da347a996939a8fe7277d180d0098094332e63d7 (patch) | |
tree | dce4dfcca60fadf10ed464bbc1cde27fc8db0d6b /cpulist.c | |
parent | Small bugfix in sensor autodetection when -P is used (diff) | |
download | cputemp2maxfreq-da347a996939a8fe7277d180d0098094332e63d7.tar.gz cputemp2maxfreq-da347a996939a8fe7277d180d0098094332e63d7.tar.bz2 cputemp2maxfreq-da347a996939a8fe7277d180d0098094332e63d7.zip |
Add -Wall -Werror and fix warnings
Diffstat (limited to 'cpulist.c')
-rw-r--r-- | cpulist.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -44,7 +44,7 @@ int cpulist_find_cpus() { DIR *cpudir; struct dirent *cpu_dirent; - char sysfs_file[128]; + char sysfs_file[309]; int package; DEBUG1_CPULIST("Started\n") @@ -72,7 +72,7 @@ int cpulist_find_cpus() if (cpulist_is_cpu(cpu_dirent->d_name)) { DEBUG2_CPULIST("Found CPU %s\n",cpu_dirent->d_name); - snprintf(sysfs_file,128,"/sys/devices/system/cpu/%s/topology/physical_package_id",cpu_dirent->d_name); + snprintf(sysfs_file,309,"/sys/devices/system/cpu/%s/topology/physical_package_id",cpu_dirent->d_name); package=sysfs_read_long_int(sysfs_file); DEBUG2_CPULIST("CPU Belongs to package id %d\n",package); if ((package==config.cpu) || (config.cpu<0)) |