aboutsummaryrefslogtreecommitdiff
path: root/dwmblocks.c
diff options
context:
space:
mode:
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]);
}