diff options
Diffstat (limited to 'mergecap.c')
-rw-r--r-- | mergecap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mergecap.c b/mergecap.c index 1476e0fe5d..94fb70b7f0 100644 --- a/mergecap.c +++ b/mergecap.c @@ -251,7 +251,7 @@ main(int argc, char *argv[]) gboolean do_append = FALSE; gboolean verbose = FALSE; int in_file_count = 0; - guint snaplen = 0; + guint32 snaplen = 0; #ifdef PCAP_NG_DEFAULT int file_type = WTAP_FILE_TYPE_SUBTYPE_PCAPNG; /* default to pcap format */ #else @@ -362,7 +362,7 @@ main(int argc, char *argv[]) break; case 's': - snaplen = get_positive_int(optarg, "snapshot length"); + snaplen = get_nonzero_guint32(optarg, "snapshot length"); break; case 'v': |