fixed issue causing segfault on ARM systems
This commit is contained in:
parent
b685f2805f
commit
09a00ab345
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user