From: Jim Meyering Date: Tue, 28 Aug 2001 08:18:19 +0000 (+0000) Subject: (main): Correct the diagnostic for invalid argument to -w. X-Git-Tag: TEXTUTILS-2_0_15~268 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5dcf4f2419b729084d844af8f009d6e38c2d0968;p=thirdparty%2Fcoreutils.git (main): Correct the diagnostic for invalid argument to -w. --- diff --git a/src/fmt.c b/src/fmt.c index 7769e0839d..f3c39b757f 100644 --- a/src/fmt.c +++ b/src/fmt.c @@ -188,8 +188,7 @@ static bool uniform; static const unsigned char *prefix; /* User-supplied maximum line width (default WIDTH). The only output - lines - longer than this will each comprise a single word. */ + lines longer than this will each comprise a single word. */ static int max_width; /* Values derived from the option values. */ @@ -372,7 +371,7 @@ main (register int argc, register char **argv) long int tmp_long; if (xstrtol (optarg, NULL, 10, &tmp_long, "") != LONGINT_OK || tmp_long <= 0 || tmp_long > INT_MAX) - error (EXIT_FAILURE, 0, _("invalid line number increment: `%s'"), + error (EXIT_FAILURE, 0, _("invalid width: `%s'"), optarg); max_width = (int) tmp_long; }