changeset 300:385d0b40a6c8

Fix -t option handling, had a off-by one in value handling.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 22 Feb 2016 18:31:37 +0200
parents 0311f139fcf6
children 5a758be2769e
files tests.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests.c	Mon Feb 22 18:31:11 2016 +0200
+++ b/tests.c	Mon Feb 22 18:31:37 2016 +0200
@@ -67,7 +67,7 @@
                 {
                     int val = atoi(tmp);
                     if (val > 0 && val <= SET_MAX_TESTS)
-                        tests_enabled[val] = 1;
+                        tests_enabled[val - 1] = 1;
                     else
                     {
                         THERR("Invalid test number #%d, out of range [%d .. %d]\n", val, 1, SET_MAX_TESTS);