Enforce maximum package count correctly for --modversion

Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>
master
Ariadne Conill 2023-05-02 11:58:39 -07:00
parent f7bebba664
commit 1e179963d4
1 changed files with 1 additions and 1 deletions

View File

@ -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]))