From 390927ce12af637d46f892618203090cf6376e16 Mon Sep 17 00:00:00 2001 From: Stephen Fisher Date: Wed, 8 Sep 2010 18:47:14 +0000 Subject: [PATCH] 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. svn path=/trunk/; revision=34082 --- capture_opts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");