Fix bar
This commit is contained in:
parent
e89afb001e
commit
139d1c3942
8
dwm.c
8
dwm.c
|
@ -738,13 +738,10 @@ int
|
|||
drawstatusbar(Monitor *m, int bh, int extra, char* stext) {
|
||||
int ret, i, w, w2, x, x2, len, len2;
|
||||
short isCode = 0, isCode2 = 0;
|
||||
char *text;
|
||||
char *text2;
|
||||
char *p;
|
||||
char *p2;
|
||||
char *text, *text2;
|
||||
char *p, *p2;
|
||||
char stext2[1024];
|
||||
|
||||
if (extra) {
|
||||
char *st = strchr(stext, statussep);
|
||||
if (st) {
|
||||
*st = '\0'; st++;
|
||||
|
@ -759,7 +756,6 @@ drawstatusbar(Monitor *m, int bh, int extra, char* stext) {
|
|||
|
||||
p2 = text2;
|
||||
memcpy(text2, stext2, len2);
|
||||
}
|
||||
|
||||
len = strlen(stext) + 1;
|
||||
if (!(text = (char*) malloc(sizeof(char)*len)))
|
||||
|
|
Loading…
Reference in New Issue