aboutsummaryrefslogtreecommitdiff
path: root/dwmblocks.c
diff options
context:
space:
mode:
authorAidan <torrinfail@gmail.com>2019-03-24 22:32:08 -0600
committerAidan <torrinfail@gmail.com>2019-03-24 22:32:08 -0600
commitce861dd79800eb7ea429f54b3b38d7a05e44dd7b (patch)
treecfb259302bd8cf26479e450f2a91a18f438dd8c6 /dwmblocks.c
parent980aab697afc8b02f807624b475300de360dafa2 (diff)
Fixed for loop in getstatus()
Diffstat (limited to 'dwmblocks.c')
-rw-r--r--dwmblocks.c2
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]);
}