saving to txt by default now (compability issues) - fiche - A pastebin adjusted for gopher use
 (HTM) git clone git://vernunftzentrum.de/fiche.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit d6865f63f2725bb0f447cfb3f113abeb1376a73c
 (DIR) parent d731796d06c3fb02a8241bf18e4b76391bfd422a
 (HTM) Author: solusipse <solus1ps3@gmail.com>
       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(-)
       ---
 (DIR) 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.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");