fixed typos

This commit is contained in:
celso 2022-11-19 22:41:06 -03:00
parent b83902efb9
commit e6160e1664
1 changed files with 2 additions and 2 deletions

View File

@ -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){