From d6865f63f2725bb0f447cfb3f113abeb1376a73c Mon Sep 17 00:00:00 2001 From: solusipse Date: Fri, 13 Sep 2013 22:16:05 +0200 Subject: [PATCH] saving to txt by default now (compability issues) --- fiche.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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");