From: Aidan Date: Mon, 25 Mar 2019 04:32:08 +0000 (-0600) Subject: Fixed for loop in getstatus() X-Git-Url: https://git.armaanb.net/?p=dwmblocks.git;a=commitdiff_plain;h=ce861dd79800eb7ea429f54b3b38d7a05e44dd7b Fixed for loop in getstatus() --- 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]); }