1
0
Fork 0

Fix typo in temperature

This commit is contained in:
Aaron Marcher 2018-04-29 22:44:09 +02:00
parent 4113a39ee6
commit c3ce506b7f

View file

@ -35,7 +35,7 @@ temp(const char *null)
size = sizeof(temp);
if (sysctl(mib, 5, &temp, &sz, NULL, 0) == -1) {
if (sysctl(mib, 5, &temp, &size, NULL, 0) == -1) {
fprintf(stderr, "sysctl 'SENSOR_TEMP': %s\n", strerror(errno));
return NULL;
}