commit 3d308cafb0f3a56e9247e6a9aaf9da6e279a5bc6
parent 500b1fbb0f5d91f80f6f86067f898c72f4b2aa58
Author: torrinfail <torrinfail@gmail.com>
Date:   Thu, 27 Aug 2020 06:51:30 +0000

Merge pull request #29 from keikari/patch-2

Fix, delimLen caused weird behaviour
Diffstat:
Mdwmblocks.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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();