aboutsummaryrefslogtreecommitdiff
path: root/mstatus.c
diff options
context:
space:
mode:
authorMango0x45 <thomasvoss@live.com> 2021-08-04 11:39:46 +0200
committerMango0x45 <thomasvoss@live.com> 2021-08-04 11:39:46 +0200
commitf4c5dc7a332b229b8efffdb66f0c219709fd6148 (patch)
tree5e4c110989650d7cc8217e624e5e8295a95b3941 /mstatus.c
parent3b4c51df515b55537a8f8757e84f0356a8189f54 (diff)
Zero the entire buffer
Diffstat (limited to 'mstatus.c')
-rw-r--r--mstatus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mstatus.c b/mstatus.c
index bf0029b..f9b341b 100644
--- a/mstatus.c
+++ b/mstatus.c
@@ -136,7 +136,7 @@ write_status(struct Block b)
*/
update_bar:;
char buf[sb.length + (sb.count - 1) * seperator.len + 2];
- memset(buf, '\0', sb.length + 1);
+ memset(buf, '\0', sizeof(buf));
/* Double for loops so that the seperator isnt printed to the left of the first block */
int i;