summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-08-28 08:18:19 +0000
committerJim Meyering <jim@meyering.net>2001-08-28 08:18:19 +0000
commit5dcf4f2419b729084d844af8f009d6e38c2d0968 (patch)
treef0edcd75b20276ea1471a3bb39ec00960177106a /src
parentaa69564e945c3a91d81c88839268a23725c76dd9 (diff)
downloadcoreutils-5dcf4f2419b729084d844af8f009d6e38c2d0968.tar.xz
(main): Correct the diagnostic for invalid argument to -w.
Diffstat (limited to 'src')
-rw-r--r--src/fmt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/fmt.c b/src/fmt.c
index 7769e0839..f3c39b757 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;
}