diff --git a/fiche.c b/fiche.c index f86d71a..99dc936 100755 --- a/fiche.c +++ b/fiche.c @@ -261,10 +261,10 @@ int create_directory(char *slug) void save_to_file(char *slug, char *buffer) { - char *directory = malloc(strlen(BASEDIR) + strlen(slug) + strlen("/index.html")); + char *directory = malloc(strlen(BASEDIR) + strlen(slug) + strlen("/index.txt")); strcpy(directory, BASEDIR); strcat(directory, slug); - strcat(directory, "/index.html"); + strcat(directory, "/index.txt"); FILE *fp; fp = fopen(directory, "w");