summaryrefslogtreecommitdiff
path: root/dumpcap.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2015-06-24 14:18:13 -0700
committerPascal Quantin <pascal.quantin@gmail.com>2015-06-24 21:24:41 +0000
commit1f0226cce9f7f16a3dedb52d6bdf1270b04a6be9 (patch)
tree8ee5db91ba0974baef4c9265cd3b5ad9209ebda7 /dumpcap.c
parentec094b5cc1b1a94ffa60ed7ba30443013cc45c02 (diff)
downloadwireshark-1f0226cce9f7f16a3dedb52d6bdf1270b04a6be9.tar.gz
dumpcap: fix files capture autostop condition
CND_CLASS_CAPTURESIZE condition type needs the tested parameter to be a guint64 Bug: 11305 Change-Id: I096d995e1e08ff3a81b2a95710185d272d849c86 Reviewed-on: https://code.wireshark.org/review/9104 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dumpcap.c b/dumpcap.c
index 68f23bc4f1..f41f9ea6fa 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -3458,7 +3458,7 @@ do_file_switch_or_stop(capture_options *capture_opts,
if (capture_opts->multi_files_on) {
if (cnd_autostop_files != NULL &&
- cnd_eval(cnd_autostop_files, ++global_ld.autostop_files)) {
+ cnd_eval(cnd_autostop_files, (guint64)++global_ld.autostop_files)) {
/* no files left: stop here */
global_ld.go = FALSE;
return FALSE;
@@ -3698,7 +3698,7 @@ capture_loop_start(capture_options *capture_opts, gboolean *stats_known, struct
if (capture_opts->has_autostop_files)
cnd_autostop_files =
- cnd_new(CND_CLASS_CAPTURESIZE, capture_opts->autostop_files);
+ cnd_new(CND_CLASS_CAPTURESIZE, (guint64)capture_opts->autostop_files);
}
/* init the time values */