pinosaur
/
dwmblocks.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
941f415
)
Small fix
author
keikari
<34790748+keikari@users.noreply.github.com>
Sat, 15 Aug 2020 18:43:18 +0000
(21:43 +0300)
committer
GitHub
<noreply@github.com>
Sat, 15 Aug 2020 18:43:18 +0000
(21:43 +0300)
delimLen didn't count in null-terminator.
On line 62 the null terminator character doesn't get copied.
dwmblocks.c
patch
|
blob
|
history
diff --git
a/dwmblocks.c
b/dwmblocks.c
index
e3ac034
..
63d1547
100644
(file)
--- 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();