pinosaur
/
dwmblocks.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
980aab6
)
Fixed for loop in getstatus()
author
Aidan
<torrinfail@gmail.com>
Mon, 25 Mar 2019 04:32:08 +0000
(22:32 -0600)
committer
Aidan
<torrinfail@gmail.com>
Mon, 25 Mar 2019 04:32:08 +0000
(22:32 -0600)
dwmblocks.c
patch
|
blob
|
history
diff --git
a/dwmblocks.c
b/dwmblocks.c
index
5569531
..
88ee952
100644
(file)
--- 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]);
}