From 1e179963d4df2b6598b8d125d53924966a97137a Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Tue, 2 May 2023 11:58:39 -0700 Subject: [PATCH] Enforce maximum package count correctly for --modversion Signed-off-by: Ariadne Conill --- cli/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/main.c b/cli/main.c index 2aca647..4dceb3b 100644 --- a/cli/main.c +++ b/cli/main.c @@ -1325,7 +1325,7 @@ cleanup3: /* check if there is a limit to the number of packages allowed to be included, if so and we have hit * the limit, stop adding packages to the queue. */ - if (maximum_package_count > 0 && pkgq.length > maximum_package_count) + if (maximum_package_count > 0 && pkgq.length >= maximum_package_count) break; while (isspace((unsigned char)package[0]))