diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2015-06-24 14:18:13 -0700 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2015-06-24 21:24:41 +0000 |
commit | 1f0226cce9f7f16a3dedb52d6bdf1270b04a6be9 (patch) | |
tree | 8ee5db91ba0974baef4c9265cd3b5ad9209ebda7 /dumpcap.c | |
parent | ec094b5cc1b1a94ffa60ed7ba30443013cc45c02 (diff) | |
download | wireshark-1f0226cce9f7f16a3dedb52d6bdf1270b04a6be9.tar.gz wireshark-1f0226cce9f7f16a3dedb52d6bdf1270b04a6be9.tar.bz2 wireshark-1f0226cce9f7f16a3dedb52d6bdf1270b04a6be9.zip |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |