aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2012-02-20 20:15:51 +0000
committerAnders Broman <anders.broman@ericsson.com>2012-02-20 20:15:51 +0000
commitc7f1a431d23e17a15777652b1252e139f182b0e6 (patch)
treebb49b313d7ab3bd069902b1b651ec6cecaf6122e /file.c
parentc53a1546f5130e192fcd157f6e04e03c1a719ce6 (diff)
Handle reading and writing of multiple IDB:s, write IDB options and use correct lengt for strings, handle more than 100 char comment
svn path=/trunk/; revision=41082
Diffstat (limited to 'file.c')
-rw-r--r--file.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/file.c b/file.c
index 79ce6419d8..4405422726 100644
--- a/file.c
+++ b/file.c
@@ -3795,11 +3795,14 @@ cf_save(capture_file *cf, const char *fname, packet_range_t *range, guint save_f
format; we can't do that by copying or moving the capture file,
we have to do it by writing the packets out in Wiretap. */
- wtapng_section_t *shb_hdr;
+ wtapng_section_t *shb_hdr = NULL;
+ wtapng_iface_dsecriptions_t *idb_inf = NULL;
shb_hdr = wtap_file_get_shb_info(cf->wth);
+ idb_inf = wtap_file_get_idb_info(cf->wth);
+
pdh = wtap_dump_open_ng(fname, save_format, cf->lnk_t, cf->snap,
- compressed, shb_hdr, &err);
+ compressed, shb_hdr, idb_inf, &err);
if (pdh == NULL) {
cf_open_failure_alert_box(fname, err, NULL, TRUE, save_format);
goto fail;