From e6160e1664c2fb8e139a04f668b2627a160e466a Mon Sep 17 00:00:00 2001 From: celso Date: Sat, 19 Nov 2022 22:41:06 -0300 Subject: [PATCH] fixed typos --- src/homemade_speedstep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/homemade_speedstep.c b/src/homemade_speedstep.c index a7261fd..5711f7d 100644 --- a/src/homemade_speedstep.c +++ b/src/homemade_speedstep.c @@ -187,9 +187,9 @@ int main(int argc, char** argv){ char* char_temperature = malloc(sizeof(char) * 8); getfilec(curtempfile, char_temperature); newlinetonullbyte(char_temperature); - int temperature = stringtoint(temperature, stringlength(temperature)); + int temperature = stringtoint(char_temperature, stringlength(char_temperature)); /* check if current temp is higher than max and step down */ - if (tempreature >= maxtemp && curstep < stepc - 1){ + if (temperature >= maxtemp && curstep < stepc - 1){ curstep++; curmaxfile = fopen(MAXSPDPATH, "w"); if (curmaxfile == NULL){