From: Jim Meyering Date: Wed, 15 Oct 2003 07:24:39 +0000 (+0000) Subject: (parse_field_count): Handle the case where overflow X-Git-Tag: v5.1.0~409 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9825dd2a693c10593125fdc046d8d21a372c207;p=thirdparty%2Fcoreutils.git (parse_field_count): Handle the case where overflow and invalid suffix char are both reported. --- diff --git a/src/sort.c b/src/sort.c index 5fc6640bb4..5945c867ab 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);