stream: always make stream dumping/capturing append to output file

Partially fixes #1393 (but not really).
This commit is contained in:
wm4 2014-12-27 21:16:33 +01:00
parent 894b172a76
commit ed253beef0
1 changed files with 1 additions and 1 deletions

View File

@ -464,7 +464,7 @@ void stream_set_capture_file(stream_t *s, const char *filename)
s->capture_file = NULL; s->capture_file = NULL;
s->capture_filename = NULL; s->capture_filename = NULL;
if (filename) { if (filename) {
s->capture_file = fopen(filename, "wb"); s->capture_file = fopen(filename, "ab");
if (s->capture_file) { if (s->capture_file) {
s->capture_filename = talloc_strdup(NULL, filename); s->capture_filename = talloc_strdup(NULL, filename);
if (s->buf_pos < s->buf_len) if (s->buf_pos < s->buf_len)