diff options
author | keikari <34790748+keikari@users.noreply.github.com> | 2020-08-16 12:20:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-16 12:20:15 +0300 |
commit | 86d7ae90b7a9f1b9412d18c132c8307b8ee45bd0 (patch) | |
tree | 956bdff56ca2bcd4f1fc0bcc31af3c09f6ebf1f5 /dwmblocks.c | |
parent | 0bd457557437834bb21d48ac80a1e6413540d8ab (diff) |
Update dwmblocks.c
Diffstat (limited to 'dwmblocks.c')
-rw-r--r-- | dwmblocks.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dwmblocks.c b/dwmblocks.c index 63d1547..2ce251e 100644 --- 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'; + delim = MIN(delimLen, strlen(delim)); + delim[delimLen++] = '\0'; signal(SIGTERM, termhandler); signal(SIGINT, termhandler); statusloop(); |