aboutsummaryrefslogtreecommitdiffstats
path: root/capture_opts.c
diff options
context:
space:
mode:
authorsfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>2010-09-08 18:47:14 +0000
committersfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>2010-09-08 18:47:14 +0000
commitf9619e68fac9a11ca4eabc6551d8f244dbd42396 (patch)
tree9cf3446da9744d81f11a6545637619e58a738c32 /capture_opts.c
parent2e8a61d3dcbe52e72e3342bf826d321699915ead (diff)
Follow up to rev 34073: Since "-b files:0" is no longer necessary to
override the default of turning on a multiple file ring buffer, require a positive integer to be specified for the files value. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34082 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture_opts.c')
-rw-r--r--capture_opts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/capture_opts.c b/capture_opts.c
index a736037bfb..793477c997 100644
--- a/capture_opts.c
+++ b/capture_opts.c
@@ -269,7 +269,7 @@ get_ring_arguments(capture_options *capture_opts, const char *arg)
if (strcmp(arg,"files") == 0) {
capture_opts->has_ring_num_files = TRUE;
- capture_opts->ring_num_files = get_natural_int(p, "number of ring buffer files");
+ capture_opts->ring_num_files = get_positive_int(p, "number of ring buffer files");
} else if (strcmp(arg,"filesize") == 0) {
capture_opts->has_autostop_filesize = TRUE;
capture_opts->autostop_filesize = get_positive_int(p, "ring buffer filesize");