commit d1519aa012e8aa2aee0a77b6137c32abb66e77a8
parent 6d75ac1b00482e842f3e600cddde3b31a1c35ede
Author: mackarelfish <mackarelfish93@gmail.com>
Date: Sat, 30 May 2020 12:21:26 +0700
Fixed weird blocks behaviour with moving text
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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)