requested by Cory Perry:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 5 Dec 2005 23:22:59 +0000 (23:22 +0000)
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 5 Dec 2005 23:22:59 +0000 (23:22 +0000)
increase the maximum number of ringbuffer files from 1024 to 10000.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16690 f5534014-38df-0310-8fa8-9805f1628bb7

ringbuffer.h

index 8962cf1dac2a9b8b6a588860c024c6c92db9249f..396963b7bf0592eddb8925e91c65e27c7725a6b2 100644 (file)
@@ -35,7 +35,8 @@
 /* minimum number of ringbuffer files */
 #define RINGBUFFER_MIN_NUM_FILES 0
 /* maximum number of ringbuffer files */
-#define RINGBUFFER_MAX_NUM_FILES 1024
+/* (only to avoid crashes on very large numbers) */
+#define RINGBUFFER_MAX_NUM_FILES 10000
 
 int ringbuf_init(const char *capture_name, guint num_files);
 const gchar *ringbuf_current_filename(void);