From 0c0f6a650e854672a915ba0c318ba6bb5f16a552 Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Mon, 27 Mar 2017 16:11:41 +0200 Subject: reordercap: use the snaplen from the source file Change-Id: I61871fa10142e2e2fab5e0e579df7530b9e52eef Reviewed-on: https://code.wireshark.org/review/20746 Reviewed-by: Michael Mann --- reordercap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'reordercap.c') 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; -- cgit v1.2.1