diff options
author | Thomas White <taw@physics.org> | 2010-04-01 18:15:00 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-04-01 18:15:00 +0200 |
commit | 55593262bc6c676d70d65336f7d86aca9211b79b (patch) | |
tree | e18a5733892bf2cd98417dc5c18a920d8f52255c /src | |
parent | efbab41e65b5ca0c19b05eee40eb4a4ebadfd262 (diff) |
indexamajig: Check that -j argument isn't greater than MAX_THREADS
Diffstat (limited to 'src')
-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; } |