aboutsummaryrefslogtreecommitdiff
path: root/slstatus/components/battery.c
diff options
context:
space:
mode:
Diffstat (limited to 'slstatus/components/battery.c')
-rw-r--r--slstatus/components/battery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/slstatus/components/battery.c b/slstatus/components/battery.c
index 1c753f9..f2dc393 100644
--- a/slstatus/components/battery.c
+++ b/slstatus/components/battery.c
@@ -62,7 +62,7 @@
{ "Not charging", "o" },
};
size_t i;
- char path[PATH_MAX], state[12];
+ char path[PATH_MAX], state[13];
if (esnprintf(path, sizeof(path), POWER_SUPPLY_STATUS, bat) < 0)
return NULL;
@@ -81,7 +81,7 @@
{
uintmax_t charge_now, current_now, m, h;
double timeleft;
- char path[PATH_MAX], state[12];
+ char path[PATH_MAX], state[13];
if (esnprintf(path, sizeof(path), POWER_SUPPLY_STATUS, bat) < 0)
return NULL;