diff options
-rw-r--r-- | src/indexamajig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index 48833db2..e27c8c30 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -493,7 +493,7 @@ int main(int argc, char *argv[]) prefix = strdup(""); } - if ( nthreads == 0 ) { + if ( (nthreads == 0) || (nthreads > MAX_THREADS) ) { ERROR("Invalid number of threads.\n"); return 1; } |