From ca53638a172a80424e54ee7f50658532bf69646e Mon Sep 17 00:00:00 2001 From: Ashish Kumar Yadav Date: Fri, 24 Jul 2020 22:27:19 +0530 Subject: [PATCH] Update buf size in writepid --- dwmblocks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwmblocks.c b/dwmblocks.c index 6589ae1..539823e 100644 --- a/dwmblocks.c +++ b/dwmblocks.c @@ -255,7 +255,7 @@ void writepid() { int fd; - char buf[20]; + char buf[8]; /* maximum possible pid in linux is 4194304 */ struct flock fl; ssize_t len;