col: dont allow col -l 0

This commit is contained in:
Hiltjo Posthuma 2015-03-30 21:49:33 +02:00
parent b1fcce32e2
commit bf90e85f18

2
col.c
View File

@ -198,7 +198,7 @@ main(int argc, char *argv[])
halfline = 1; halfline = 1;
break; break;
case 'l': case 'l':
pagesize = estrtonum(EARGF(usage()), 0, MIN(SIZE_MAX, LLONG_MAX)); pagesize = estrtonum(EARGF(usage()), 1, MIN(SIZE_MAX, LLONG_MAX));
break; break;
case 'p': case 'p':
escape = 1; escape = 1;