diff options
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) |