aboutsummaryrefslogtreecommitdiffstats
path: root/cputemp.c
diff options
context:
space:
mode:
Diffstat (limited to 'cputemp.c')
-rw-r--r--cputemp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cputemp.c b/cputemp.c
index ca616b1..95ce517 100644
--- a/cputemp.c
+++ b/cputemp.c
@@ -102,7 +102,7 @@ void cputemp_read_hwmon(char *hwmon,char *sensor_name,struct s_sensor *sensor)
DEBUG2_CPUTEMP("Found label %s\n",hwmon_dirent->d_name);
snprintf(name_file,258,"%s/%s",hwmon,hwmon_dirent->d_name);
snprintf(input_file,258,"%s/%s",hwmon,hwmon_dirent->d_name);
- offset=strlen(input_file)-5;
+ offset=(int) strlen(input_file)-5;
strncpy(input_file+offset,"input",6);
cputemp_match_and_validate(name_file,input_file,sensor_name,sensor);
}