Infobar: Set buffers size to MAXSS

This commit is contained in:
Martin Duquesnoy 2010-01-31 16:27:27 +01:00
parent 6f1624f43b
commit 888b2a7467
2 changed files with 4 additions and 3 deletions

View File

@ -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} };

View File

@ -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 { \