use a static buffer instead of dynamic memory

This commit is contained in:
Aaron Marcher
2017-06-13 00:06:04 +02:00
parent abbaa7af44
commit 597cdc6b5c
2 changed files with 204 additions and 242 deletions

View File

@ -4,7 +4,10 @@
#define UPDATE_INTERVAL 1
/* text to show if no value can be retrieved */
#define UNKNOWN_STR "n/a"
#define UNKNOWN_STR "n/a"
/* maximum output string length */
#define MAXLEN 2048
/* statusbar
- battery_perc (battery percentage) [argument: battery name]