From 3b26bba0c44c38d33888f375385a8697adc56f7c Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 15 Jan 2005 21:23:04 +0000 Subject: [PATCH] Fixed an off-by-one comparison against MAX_BASIS_DIRS. --- options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options.c b/options.c index 002aa9a8..6f135034 100644 --- a/options.c +++ b/options.c @@ -738,7 +738,7 @@ int parse_arguments(int *argc, const char ***argv, int frommain) compare_dest = 1; dest_option = "--compare-dest"; set_dest_dir: - if (basis_dir_cnt >= MAX_BASIS_DIRS-1) { + if (basis_dir_cnt >= MAX_BASIS_DIRS) { snprintf(err_buf, sizeof err_buf, "ERROR: at most %d %s args may be specified\n", MAX_BASIS_DIRS, dest_option); -- 2.34.1