|
@ -54,7 +54,11 @@ void getcmd(const Block *block, char *output) |
|
|
char c; |
|
|
char c; |
|
|
int i = strlen(block->icon); |
|
|
int i = strlen(block->icon); |
|
|
while((c = fgetc(cmdf)) != EOF) |
|
|
while((c = fgetc(cmdf)) != EOF) |
|
|
|
|
|
{ |
|
|
output[i++] = c; |
|
|
output[i++] = c; |
|
|
|
|
|
if(c == '\n') |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
if (delim != '\0' && --i) |
|
|
if (delim != '\0' && --i) |
|
|
output[i++] = delim; |
|
|
output[i++] = delim; |
|
|
output[i++] = '\0'; |
|
|
output[i++] = '\0'; |
|
|