From dcb38ff6370148f8b6733dd7b4dfa8bdc69c84e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 13 Jul 2013 17:32:48 +0200 Subject: [PATCH] htdocs/archive: Save every version --- htdocs/archive/setfiledata.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/archive/setfiledata.c b/htdocs/archive/setfiledata.c index 17ab49687..6ac0c6f67 100644 --- a/htdocs/archive/setfiledata.c +++ b/htdocs/archive/setfiledata.c @@ -62,6 +62,12 @@ int main() fclose(f); generatepage("saved."); + f = fopen("history.txt", "at"); + if (f) { + fprintf(f,"%s\n",str); + fclose(f); + } + return EXIT_SUCCESS; }