Skip to content

Commit

Permalink
fixed issue causing segfault on ARM systems
Browse files Browse the repository at this point in the history
  • Loading branch information
torrinfail committed Nov 30, 2019
1 parent b685f28 commit 09a00ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dwmblocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ void getcmd(const Block *block, char *output)
char c;
int i = strlen(block->icon);
while((c = fgetc(cmdf)) != EOF)
{
output[i++] = c;
if(c == '\n')
break;
}
if (delim != '\0' && --i)
output[i++] = delim;
output[i++] = '\0';
Expand Down

0 comments on commit 09a00ab

Please sign in to comment.