From de584c658cbb30f0fa7d2d9037c4ccb29bb71417 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 16 Jul 2004 18:01:30 +0000 Subject: [PATCH] Limit the block-size that the user can specify. --- options.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/options.c b/options.c index 4179bfb5..47bba714 100644 --- a/options.c +++ b/options.c @@ -635,6 +635,12 @@ int parse_arguments(int *argc, const char ***argv, int frommain) } #endif + if (block_size > MAX_MAP_SIZE) { + rprintf(FINFO, "limiting block-size to %d bytes\n", + MAX_MAP_SIZE); + block_size = MAX_MAP_SIZE; + } + if (write_batch && read_batch) { rprintf(FERROR, "write-batch and read-batch can not be used together\n"); -- 2.34.1