diff options
author | Aidan <torrinfail@gmail.com> | 2019-03-24 22:32:08 -0600 |
---|---|---|
committer | Aidan <torrinfail@gmail.com> | 2019-03-24 22:32:08 -0600 |
commit | ce861dd79800eb7ea429f54b3b38d7a05e44dd7b (patch) | |
tree | cfb259302bd8cf26479e450f2a91a18f438dd8c6 | |
parent | 980aab697afc8b02f807624b475300de360dafa2 (diff) |
Fixed for loop in getstatus()
-rw-r--r-- | dwmblocks.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]); } |