diff --git a/src/infobar.c b/src/infobar.c index 327ae6d..bfe779b 100644 --- a/src/infobar.c +++ b/src/infobar.c @@ -174,10 +174,10 @@ void infobar_draw_statustext(int sc, char *str) { /* str without \b[;;;;]\ blocks and str without colorsblocks * */ - char strwb[512] = { 0 }; - char strwc[512] = { 0 }; + char strwb[MAXSS] = { 0 }; + char strwc[MAXSS] = { 0 }; - char buf[512] = { 0 }; + char buf[MAXSS] = { 0 }; char as, col[8] = { 0 }; int i, j, c, k = 0, b = 0; uint bp[64][5] = { {0} }; diff --git a/src/wmfs.h b/src/wmfs.h index 32eafad..614cdd4 100644 --- a/src/wmfs.h +++ b/src/wmfs.h @@ -87,6 +87,7 @@ #define DEF_CONF ".config/wmfs/wmfsrc" #define DEF_STATUS ".config/wmfs/status.sh" #define PAD conf.pad +#define MAXSS 4096 #define CWIN(win, parent, x, y, w, h, b, mask, col, at) \ do { \