From ce861dd79800eb7ea429f54b3b38d7a05e44dd7b Mon Sep 17 00:00:00 2001 From: Aidan Date: Sun, 24 Mar 2019 22:32:08 -0600 Subject: Fixed for loop in getstatus() --- dwmblocks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dwmblocks.c') diff --git a/dwmblocks.c b/dwmblocks.c index 5569531..88ee952 100644 --- a/dwmblocks.c +++ b/dwmblocks.c @@ -95,7 +95,7 @@ void setupsignals() void getstatus(char *str) { int j = 0; - for(int i = 0; i < 5; j+=strlen(statusbar[i++])) + for(int i = 0; i < LENGTH(blocks); j+=strlen(statusbar[i++])) { strcpy(str + j, statusbar[i]); } -- cgit v1.2.3-13-gbd6f