From 55593262bc6c676d70d65336f7d86aca9211b79b Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 1 Apr 2010 18:15:00 +0200 Subject: indexamajig: Check that -j argument isn't greater than MAX_THREADS --- src/indexamajig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/indexamajig.c') 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; } -- cgit v1.2.3