diff options
author | Daniel Lange <DLange@git.local> | 2020-09-03 12:34:39 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2020-09-03 12:34:39 +0200 |
commit | 9dd18f5da55d0b7b13170b7b75c5d9352cd51322 (patch) | |
tree | 729c3486e14e154e67be3e95eae6f108bb112c73 /linux/Battery.c | |
parent | 980f3c6ac003439a4cf4dc9b12f6e84f9562e565 (diff) | |
parent | 59eeadec918a955b40427a1b012992161050c939 (diff) | |
download | debian_htop-9dd18f5da55d0b7b13170b7b75c5d9352cd51322.tar.gz debian_htop-9dd18f5da55d0b7b13170b7b75c5d9352cd51322.tar.bz2 debian_htop-9dd18f5da55d0b7b13170b7b75c5d9352cd51322.zip |
Update upstream source from tag 'upstream/3.0.1'
Update to upstream version '3.0.1'
with Debian dir bf77c31e054f1228026f8fb35d16e496b025a364
Diffstat (limited to 'linux/Battery.c')
-rw-r--r-- | linux/Battery.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/Battery.c b/linux/Battery.c index 4014a50..a8784da 100644 --- a/linux/Battery.c +++ b/linux/Battery.c @@ -107,7 +107,7 @@ static ACPresence procAcpiCheck() { if (entryName[0] != 'A') continue; - char statePath[50]; + char statePath[256]; xSnprintf((char *) statePath, sizeof statePath, "%s/%s/state", power_supplyPath, entryName); FILE* file = fopen(statePath, "r"); if (!file) { @@ -191,7 +191,7 @@ static void Battery_getSysData(double* level, ACPresence* isOnAC) { if (!dirEntry) break; char* entryName = (char *) dirEntry->d_name; - const char filePath[50]; + const char filePath[256]; xSnprintf((char *) filePath, sizeof filePath, SYS_POWERSUPPLY_DIR "/%s/type", entryName); int fd1 = open(filePath, O_RDONLY); |