DELIMITERLENGTH might possibly be set to 0 in future

This commit is contained in:
Ashish Kumar Yadav 2021-03-28 12:51:48 +05:30
parent 801a3de6d7
commit 0e65963446

View file

@ -12,8 +12,10 @@
#define NILL INT_MIN
#define LOCKFILE "/tmp/dwmblocks.pid"
#define LENGTH(X) (sizeof X / sizeof X[0])
#define DELIMITERLENGTH (sizeof delimiter)
#define STATUSLENGTH ((sizeof blocks / sizeof blocks[0]) * (CMDOUTLENGTH + DELIMITERLENGTH))
#define STATUSLENGTH (LENGTH(blocks) * (CMDOUTLENGTH + DELIMITERLENGTH) + 1)
#include "config.h"