mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Allow minimum number of columns
This commit is contained in:
parent
7ea03123c8
commit
eecad5e43f
@ -602,7 +602,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
|
||||
if (!strcmp(long_options[option_index].name, "cols")) {
|
||||
if ((atoi(optarg) >= 6) && (atoi(optarg) <= 66)) {
|
||||
if ((atoi(optarg) >= 1) && (atoi(optarg) <= 66)) {
|
||||
my_symbol->option_2 = atoi(optarg);
|
||||
} else {
|
||||
fprintf(stderr, "Number of columns out of range\n");
|
||||
|
Loading…
Reference in New Issue
Block a user