diff options
author | Mango0x45 <thomasvoss@live.com> | 2021-08-04 11:39:46 +0200 |
---|---|---|
committer | Mango0x45 <thomasvoss@live.com> | 2021-08-04 11:39:46 +0200 |
commit | f4c5dc7a332b229b8efffdb66f0c219709fd6148 (patch) | |
tree | 5e4c110989650d7cc8217e624e5e8295a95b3941 | |
parent | 3b4c51df515b55537a8f8757e84f0356a8189f54 (diff) |
Zero the entire buffer
-rw-r--r-- | mstatus.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |