mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-18 18:37:07 +00:00
Allow minimum number of columns
This commit is contained in:
@@ -602,7 +602,7 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!strcmp(long_options[option_index].name, "cols")) {
|
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);
|
my_symbol->option_2 = atoi(optarg);
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "Number of columns out of range\n");
|
fprintf(stderr, "Number of columns out of range\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user