mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-14 07:04:34 -04:00
#197 Allow --secure=0 in main.c; manual --mode -> --secure AZTEC/HANXIN
This commit is contained in:
parent
d921cb11fb
commit
d0e2c5928a
2 changed files with 4 additions and 4 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue