saving to txt by default now (compability issues) - fiche - A pastebin adjusted… | |
git clone git://vernunftzentrum.de/fiche.git | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit d6865f63f2725bb0f447cfb3f113abeb1376a73c | |
parent d731796d06c3fb02a8241bf18e4b76391bfd422a | |
Author: solusipse <[email protected]> | |
Date: Fri, 13 Sep 2013 22:16:05 +0200 | |
saving to txt by default now (compability issues) | |
Diffstat: | |
fiche.c | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git 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.h… | |
+ char *directory = malloc(strlen(BASEDIR) + strlen(slug) + strlen("/index.t… | |
strcpy(directory, BASEDIR); | |
strcat(directory, slug); | |
- strcat(directory, "/index.html"); | |
+ strcat(directory, "/index.txt"); | |
FILE *fp; | |
fp = fopen(directory, "w"); |