commit 0bd457557437834bb21d48ac80a1e6413540d8ab
parent 941f415b3821bf4f3493a0864c05a1af313b22bc
Author: keikari <34790748+keikari@users.noreply.github.com>
Date: Sat, 15 Aug 2020 21:43:18 +0300
Small fix
delimLen didn't count in null-terminator.
On line 62 the null terminator character doesn't get copied.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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();