summaryrefslogtreecommitdiff
path: root/dwmblocks.c
diff options
context:
space:
mode:
authorkeikari <34790748+keikari@users.noreply.github.com>2020-08-15 21:43:18 +0300
committerGitHub <noreply@github.com>2020-08-15 21:43:18 +0300
commit0bd457557437834bb21d48ac80a1e6413540d8ab (patch)
tree84713e4fd3ebcc643c7507c551025ba068bf4437 /dwmblocks.c
parent941f415b3821bf4f3493a0864c05a1af313b22bc (diff)
Small fix
delimLen didn't count in null-terminator. On line 62 the null terminator character doesn't get copied.
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 e3ac034..63d1547 100644
--- a/dwmblocks.c
+++ b/dwmblocks.c
@@ -178,7 +178,7 @@ 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))] = '\0';
signal(SIGTERM, termhandler);
signal(SIGINT, termhandler);
statusloop();