`join -1 x' would give a misleading diagnostic

(string_to_join_field): Report that a non-numeric field
number is invalid, rather than `so large that it is not representable'.
This commit is contained in:
Jim Meyering committed 2004-03-10 10:44:31 +00:00
1 parent 97f63d336f
commit aa18f80de6
1 file changed
+1 -1
+1 -1
View File
@@ -642,7 +642,7 @@ string_to_join_field (char const *str, char const *err_msg_fmt)
uintmax_t val;
strtol_error s_err = xstrtoumax (str, NULL, 10, &val, "");
if (s_err == LONGINT_OVERFLOW || SIZE_MAX < val)
if (s_err == LONGINT_OVERFLOW || (s_err == LONGINT_OK && SIZE_MAX < val))
{
error (EXIT_FAILURE, 0,
_("value %s is so large that it is not representable"),