diff options
author | mackarelfish <mackarelfish93@gmail.com> | 2020-05-30 12:21:26 +0700 |
---|---|---|
committer | mackarelfish <mackarelfish93@gmail.com> | 2020-05-30 12:21:26 +0700 |
commit | d1519aa012e8aa2aee0a77b6137c32abb66e77a8 (patch) | |
tree | 4a3dfb730e9907fb609fdc300c446734f8b14578 /dwmblocks.c | |
parent | 6d75ac1b00482e842f3e600cddde3b31a1c35ede (diff) | |
download | dwmblocks-d1519aa012e8aa2aee0a77b6137c32abb66e77a8.tar.gz dwmblocks-d1519aa012e8aa2aee0a77b6137c32abb66e77a8.tar.bz2 dwmblocks-d1519aa012e8aa2aee0a77b6137c32abb66e77a8.zip |
Fixed weird blocks behaviour with moving text
Diffstat (limited to 'dwmblocks.c')
-rw-r--r-- | dwmblocks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dwmblocks.c b/dwmblocks.c index bf648c2..92e9570 100644 --- a/dwmblocks.c +++ b/dwmblocks.c @@ -75,7 +75,7 @@ void getcmd(const Block *block, char *output) return; char c; int i = strlen(block->icon); - fgets(output+i, CMDLENGTH-i, cmdf); + fgets(output+i, CMDLENGTH-2, cmdf); remove_all(output, '\n'); i = strlen(output); if (delim != '\0' && i) |