fold: check form -n aswell, > 0
This commit is contained in:
parent
9304b84c92
commit
bc9205cab5
2
fold.c
2
fold.c
|
@ -85,7 +85,7 @@ main(int argc, char *argv[])
|
||||||
width = estrtonum(EARGF(usage()), 1, MIN(LLONG_MAX, SIZE_MAX));
|
width = estrtonum(EARGF(usage()), 1, MIN(LLONG_MAX, SIZE_MAX));
|
||||||
break;
|
break;
|
||||||
ARGNUM:
|
ARGNUM:
|
||||||
width = ARGNUMF();
|
width = estrtonum(argv[0], 1, MIN(LLONG_MAX, SIZE_MAX));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
usage();
|
usage();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user