1
0
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:
Robin Stuart
2016-10-27 09:47:04 +01:00
parent 7ea03123c8
commit eecad5e43f

View File

@@ -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");