diff options
Diffstat (limited to 'msg.c')
-rw-r--r-- | msg.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -238,13 +238,13 @@ handle_file(const char *path) fprintf(out, "%s%s%s", base_pre, buffer, base_post); } + free(buffer); + fclose(in); fclose(out); free(inpath); free(outpath); - - free(buffer); } int @@ -317,6 +317,12 @@ main(int argc, char **argv) free(filepath); } + for (x = (char **) md_resources; *x != NULL; x++) { + asprintf(&filepath, "%s.md", *x); + handle_file(filepath); + free(filepath); + } + free(base_pre); free(base_post); |