diff options
author | Jim Meyering <jim@meyering.net> | 1997-03-14 04:06:12 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-03-14 04:06:12 +0000 |
commit | f02b837782c988e291cd8ac70ce3f70150d76df4 (patch) | |
tree | 0b23c3bd63a19f87399486650487c1dab9361d7d /src | |
parent | 294ea6ffc2502c0496a60bdf4ee1954cb73ae7dd (diff) | |
download | coreutils-f02b837782c988e291cd8ac70ce3f70150d76df4.tar.xz |
(main): Allow use of 0 (zero) as the margin offset
argument to the -o option. Patch from Gary Anderson.
Diffstat (limited to 'src')
-rw-r--r-- | src/pr.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -816,7 +816,7 @@ main (int argc, char **argv) { long int tmp_long; if (xstrtol (optarg, NULL, 10, &tmp_long, "") != LONGINT_OK - || tmp_long <= 0 || tmp_long > INT_MAX) + || tmp_long < 0 || tmp_long > INT_MAX) error (EXIT_FAILURE, 0, _("`-o MARGIN' invalid line offset: `%s'"), optarg); chars_per_margin = (int) tmp_long; |