aboutsummaryrefslogtreecommitdiffstats
path: root/reordercap.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2017-03-27 16:11:41 +0200
committerMichael Mann <mmann78@netscape.net>2017-03-28 01:30:53 +0000
commit0c0f6a650e854672a915ba0c318ba6bb5f16a552 (patch)
treed641d32bc6748c8e954a1f8cb980380cf7678acc /reordercap.c
parent4038b2db268ab967f4e7da483aef5573f5f31155 (diff)
reordercap: use the snaplen from the source file
Change-Id: I61871fa10142e2e2fab5e0e579df7530b9e52eef Reviewed-on: https://code.wireshark.org/review/20746 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'reordercap.c')
-rw-r--r--reordercap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/reordercap.c b/reordercap.c
index e258693893..8d53fd728f 100644
--- a/reordercap.c
+++ b/reordercap.c
@@ -314,11 +314,11 @@ main(int argc, char *argv[])
/* Open outfile (same filetype/encap as input file) */
if (strcmp(outfile, "-") == 0) {
pdh = wtap_dump_open_stdout_ng(wtap_file_type_subtype(wth), wtap_file_encap(wth),
- 65535, FALSE, shb_hdrs, idb_inf, nrb_hdrs, &err);
+ wtap_snapshot_length(wth), FALSE, shb_hdrs, idb_inf, nrb_hdrs, &err);
outfile = "standard output";
} else {
pdh = wtap_dump_open_ng(outfile, wtap_file_type_subtype(wth), wtap_file_encap(wth),
- 65535, FALSE, shb_hdrs, idb_inf, nrb_hdrs, &err);
+ wtap_snapshot_length(wth), FALSE, shb_hdrs, idb_inf, nrb_hdrs, &err);
}
g_free(idb_inf);
idb_inf = NULL;