This commit is contained in:
Linux User 2022-10-02 15:10:51 +00:00
parent e89afb001e
commit 139d1c3942
3 changed files with 15 additions and 19 deletions

BIN
dwm

Binary file not shown.

8
dwm.c
View File

@ -738,13 +738,10 @@ int
drawstatusbar(Monitor *m, int bh, int extra, char* stext) { drawstatusbar(Monitor *m, int bh, int extra, char* stext) {
int ret, i, w, w2, x, x2, len, len2; int ret, i, w, w2, x, x2, len, len2;
short isCode = 0, isCode2 = 0; short isCode = 0, isCode2 = 0;
char *text; char *text, *text2;
char *text2; char *p, *p2;
char *p;
char *p2;
char stext2[1024]; char stext2[1024];
if (extra) {
char *st = strchr(stext, statussep); char *st = strchr(stext, statussep);
if (st) { if (st) {
*st = '\0'; st++; *st = '\0'; st++;
@ -759,7 +756,6 @@ drawstatusbar(Monitor *m, int bh, int extra, char* stext) {
p2 = text2; p2 = text2;
memcpy(text2, stext2, len2); memcpy(text2, stext2, len2);
}
len = strlen(stext) + 1; len = strlen(stext) + 1;
if (!(text = (char*) malloc(sizeof(char)*len))) if (!(text = (char*) malloc(sizeof(char)*len)))

BIN
dwm.o

Binary file not shown.