From 8aa9043837ea217280098b4b32da8d98ac18f58b Mon Sep 17 00:00:00 2001 From: Larry Knox Date: Fri, 26 Jul 2019 16:36:45 -0500 Subject: Update comment and check for strtoumax. --- src/H5FDs3comms.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/H5FDs3comms.c b/src/H5FDs3comms.c index 4c24866..8c0515d 100644 --- a/src/H5FDs3comms.c +++ b/src/H5FDs3comms.c @@ -1143,9 +1143,8 @@ H5FD_s3comms_s3r_getsize(s3r_t *handle) HGOTO_ERROR(H5E_ARGS, H5E_OVERFLOW, FAIL, "content_length overflows size_t\n"); } - if (content_length == 0 || - content_length == ULONG_MAX || - errno == ERANGE) /* errno set by strtoul */ + if (content_length == 0 || + errno == ERANGE) /* errno set by strtoumax*/ { HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "could not convert found \"Content-Length\" response (\"%s\")", -- cgit v0.12