Browse Source

ktree dump append to output file

master
kanoi 11 years ago
parent
commit
86fd90eb54
  1. 2
      src/ktree.c

2
src/ktree.c

@ -144,7 +144,7 @@ void dsp_ktree(K_LIST *list, K_TREE *root, char *filename)
tm->tm_min, tm->tm_min,
tm->tm_sec); tm->tm_sec);
stream = fopen(filename, "w"); stream = fopen(filename, "a");
if (!stream) if (!stream)
fprintf(stderr, "%s %s() failed to open '%s' (%d) %s", fprintf(stderr, "%s %s() failed to open '%s' (%d) %s",
stamp, __func__, filename, errno, strerror(errno)); stamp, __func__, filename, errno, strerror(errno));

Loading…
Cancel
Save