diff --git a/image/main.c b/image/main.c index 9a07d945..c45d5068 100644 --- a/image/main.c +++ b/image/main.c @@ -2701,6 +2701,7 @@ int main(int argc, char *argv[]) if (tmp <= 0) tmp = 1; + tmp = min_t(long, tmp, MAX_WORKER_THREADS); num_threads = tmp; } } else {