diff options
author | Jim Meyering <jim@meyering.net> | 1997-01-25 06:21:24 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-01-25 06:21:24 +0000 |
commit | a8bcd782c456fb67229a2271a083cbadfa1bed79 (patch) | |
tree | 2763e0649ac7cce6579abece692a039753a6160d /src/fold.c | |
parent | 2be7ff8311c5497b15fcf60aeaca7df1c4313338 (diff) | |
download | coreutils-a8bcd782c456fb67229a2271a083cbadfa1bed79.tar.xz |
update for changed xstrtou?l
Diffstat (limited to 'src/fold.c')
-rw-r--r-- | src/fold.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fold.c b/src/fold.c index 64a5d393a..b86810285 100644 --- a/src/fold.c +++ b/src/fold.c @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Written by David MacKenzie, djm@gnu.ai.mit.edu. */ @@ -295,7 +295,7 @@ main (int argc, char **argv) case 'w': /* Line width. */ { long int tmp_long; - if (xstrtol (optarg, NULL, 10, &tmp_long, NULL) != LONGINT_OK + if (xstrtol (optarg, NULL, 10, &tmp_long, "") != LONGINT_OK || tmp_long <= 0 || tmp_long > INT_MAX) error (EXIT_FAILURE, 0, _("invalid number of columns: `%s'"), optarg); |