From d0e2c5928ab841ea24d4d4aeaac943bd71da75d7 Mon Sep 17 00:00:00 2001 From: gitlost Date: Tue, 23 Jun 2020 22:06:18 +0100 Subject: [PATCH] #197 Allow --secure=0 in main.c; manual --mode -> --secure AZTEC/HANXIN --- docs/manual.txt | 6 +++--- frontend/main.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/manual.txt b/docs/manual.txt index 12a78045..99e1c0e6 100644 --- a/docs/manual.txt +++ b/docs/manual.txt @@ -2227,8 +2227,8 @@ Note that in symbols which have a specified size the amount of error correction is dependent on the length of the data input and Zint will allow error correction capacities as low as 3 codewords. -Alternatively the amount of error correction data can be specified by use of -the --mode= option or by setting option_1 to a value from the following table: +Alternatively the amount of error correction data can be specified by use of the +--secure= option or by setting option_1 to a value from the following table: ---------------------------------- Mode | Error Correction Capacity @@ -2441,7 +2441,7 @@ Input | Symbol Size --------------------- There are four levels of error correction capacity available for Han Xin Code -which can be set by using the --mode= option or by setting option_1 to a value +which can be set by using the --secure= option or by setting option_1 to a value from the following table: -------------------------- diff --git a/frontend/main.c b/frontend/main.c index e3a5dbbd..3452a852 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -652,7 +652,7 @@ int main(int argc, char **argv) { } } if (!strcmp(long_options[option_index].name, "secure")) { - if ((atoi(optarg) >= 1) && (atoi(optarg) <= 8)) { + if ((atoi(optarg) >= 0) && (atoi(optarg) <= 8)) { my_symbol->option_1 = atoi(optarg); } else { fprintf(stderr, "Warning 114: ECC level out of range\n");