diff --git a/src/platform/test/cinema-main.c b/src/platform/test/cinema-main.c index a59f5209e..1f60a3161 100644 --- a/src/platform/test/cinema-main.c +++ b/src/platform/test/cinema-main.c @@ -210,6 +210,12 @@ static bool parseCInemaArgs(int argc, char* const* argv) { break; case 'j': jobs = atoi(optarg); + if (jobs > MAX_JOBS) { + jobs = MAX_JOBS; + } + if (jobs < 1) { + jobs = 1; + } break; case 'n': dryRun = true;