aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/manpath.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-13 15:06:56 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-13 15:06:56 +0000
commitde607760299bad01e72dd0d624a4e7d2b7537fca (patch)
treef503cf84a49bfc32404bf53dbc1248d9fbae4ce8 /manpath.c
parent4e4b238b9de9ce600428b3f232d40a6e9bac4a17 (diff)
downloadmandoc-de607760299bad01e72dd0d624a4e7d2b7537fca.tar.gz
mandoc-de607760299bad01e72dd0d624a4e7d2b7537fca.tar.zst
mandoc-de607760299bad01e72dd0d624a4e7d2b7537fca.zip
Delete the arbitrary range restriction for -Owidth.
We provide users with tools. We don't attempt to prevent them from using them in stupid ways: depending on the context, not every stupid-looking use is necessarily actually stupid, and not every stupidity can be automatically detected anyway, so don't even try.
Diffstat (limited to 'manpath.c')
-rw-r--r--manpath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/manpath.c b/manpath.c
index f43ace60..80ac9712 100644
--- a/manpath.c
+++ b/manpath.c
@@ -1,4 +1,4 @@
-/* $Id: manpath.c,v 1.33 2017/02/10 15:45:28 schwarze Exp $ */
+/* $Id: manpath.c,v 1.34 2017/06/13 15:06:56 schwarze Exp $ */
/*
* Copyright (c) 2011, 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -299,7 +299,7 @@ manconf_output(struct manoutput *conf, const char *cp, int fromfile)
mandoc_asprintf(&oldval, "%zu", conf->width);
break;
}
- conf->width = strtonum(cp, 58, 1000, &errstr);
+ conf->width = strtonum(cp, 1, 1000, &errstr);
if (errstr == NULL)
return 0;
warnx("-O width=%s is %s", cp, errstr);