pinosaur
/
dwmblocks.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
500b1fb
)
Merge pull request #29 from keikari/patch-2
author
torrinfail
<torrinfail@gmail.com>
Thu, 27 Aug 2020 06:51:30 +0000
(06:51 +0000)
committer
GitHub
<noreply@github.com>
Thu, 27 Aug 2020 06:51:30 +0000
(06:51 +0000)
Fix, delimLen caused weird behaviour
dwmblocks.c
patch
|
blob
|
history
diff --git
a/dwmblocks.c
b/dwmblocks.c
index
b6f696f
..
e3e34a1
100644
(file)
--- a/
dwmblocks.c
+++ b/
dwmblocks.c
@@
-178,7
+178,8
@@
int main(int argc, char** argv)
else if (!strcmp("-p",argv[i]))
writestatus = pstdout;
}
- delim[MIN(delimLen, strlen(delim))] = '\0';
+ delimLen = MIN(delimLen, strlen(delim));
+ delim[delimLen++] = '\0';
signal(SIGTERM, termhandler);
signal(SIGINT, termhandler);
statusloop();