sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit bc9205cab514f718cfc2451db796ea0cfd96f9b8
parent 9304b84c927586892928fe2ce95fa2ee94f53eba
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue May 19 21:48:10 +0200

fold: check form -n aswell, > 0

Diffstat:
fold.c | 2+-
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();