saving to txt by default now (compability issues)

This commit is contained in:
solusipse
2013-09-13 22:16:05 +02:00
parent d731796d06
commit d6865f63f2

View File

@@ -261,10 +261,10 @@ int create_directory(char *slug)
void save_to_file(char *slug, char *buffer) 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); strcpy(directory, BASEDIR);
strcat(directory, slug); strcat(directory, slug);
strcat(directory, "/index.html"); strcat(directory, "/index.txt");
FILE *fp; FILE *fp;
fp = fopen(directory, "w"); fp = fopen(directory, "w");