Fixed weird blocks behaviour with moving text

This commit is contained in:
mackarelfish 2020-05-30 12:21:26 +07:00
parent 6d75ac1b00
commit d1519aa012

View file

@ -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)