summaryrefslogtreecommitdiff
path: root/src/sort.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-10-15 07:24:39 +0000
committerJim Meyering <jim@meyering.net>2003-10-15 07:24:39 +0000
commita9825dd2a693c10593125fdc046d8d21a372c207 (patch)
tree8e15595e793206ec449f87cd3655c1d9a5a855e8 /src/sort.c
parent92f4be12b1e2f8e77260b34cc609a5b850c8719c (diff)
downloadcoreutils-a9825dd2a693c10593125fdc046d8d21a372c207.tar.xz
(parse_field_count): Handle the case where overflow
and invalid suffix char are both reported.
Diffstat (limited to 'src/sort.c')
-rw-r--r--src/sort.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sort.c b/src/sort.c
index 5fc6640bb..5945c867a 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -2112,6 +2112,7 @@ parse_field_count (char const *string, size_t *val, char const *msgid)
break;
/* Fall through. */
case LONGINT_OVERFLOW:
+ case LONGINT_OVERFLOW | LONGINT_INVALID_SUFFIX_CHAR:
if (msgid)
error (SORT_FAILURE, 0, _("%s: count `%.*s' too large"),
_(msgid), (int) (suffix - string), string);