[hackers] [slstatus] Fix typo in temperature || Aaron Marcher

From: <git_AT_suckless.org>
Date: Sun, 29 Apr 2018 22:43:29 +0200 (CEST)

commit c3ce506b7fe4c9615c8bf1b6936dd235d6c04750
Author: Aaron Marcher <me_AT_drkhsh.at>
AuthorDate: Sun Apr 29 22:44:09 2018 +0200
Commit: Aaron Marcher <me_AT_drkhsh.at>
CommitDate: Sun Apr 29 22:44:09 2018 +0200

    Fix typo in temperature

diff --git a/components/temperature.c b/components/temperature.c
index a5df012..e2c6a77 100644
--- a/components/temperature.c
+++ b/components/temperature.c
_AT_@ -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;
         }
Received on Sun Apr 29 2018 - 22:43:29 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 29 2018 - 22:48:30 CEST