commit bc9205cab514f718cfc2451db796ea0cfd96f9b8
parent 9304b84c927586892928fe2ce95fa2ee94f53eba
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 19 May 2015 21:48:10 +0200
fold: check form -n aswell, > 0
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fold.c b/fold.c
@@ -85,7 +85,7 @@ main(int argc, char *argv[])
width = estrtonum(EARGF(usage()), 1, MIN(LLONG_MAX, SIZE_MAX));
break;
ARGNUM:
- width = ARGNUMF();
+ width = estrtonum(argv[0], 1, MIN(LLONG_MAX, SIZE_MAX));
break;
default:
usage();