From 86fd90eb54d19bebc066be88cfb57d7c0afd0b11 Mon Sep 17 00:00:00 2001 From: kanoi Date: Sat, 28 Jun 2014 03:45:57 +1000 Subject: [PATCH] ktree dump append to output file --- src/ktree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ktree.c b/src/ktree.c index f8abd487..28be53cd 100644 --- a/src/ktree.c +++ b/src/ktree.c @@ -144,7 +144,7 @@ void dsp_ktree(K_LIST *list, K_TREE *root, char *filename) tm->tm_min, tm->tm_sec); - stream = fopen(filename, "w"); + stream = fopen(filename, "a"); if (!stream) fprintf(stderr, "%s %s() failed to open '%s' (%d) %s", stamp, __func__, filename, errno, strerror(errno));