summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2019-07-26 21:36:45 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2019-07-26 21:36:45 (GMT)
commit8aa9043837ea217280098b4b32da8d98ac18f58b (patch)
tree293c97208b5952c4b4f6961afe4131006067ea90 /src
parente852c8deb81f1ded2b9f4f7276967a6b7d2712ba (diff)
downloadhdf5-8aa9043837ea217280098b4b32da8d98ac18f58b.zip
hdf5-8aa9043837ea217280098b4b32da8d98ac18f58b.tar.gz
hdf5-8aa9043837ea217280098b4b32da8d98ac18f58b.tar.bz2
Update comment and check for strtoumax.
Diffstat (limited to 'src')
-rw-r--r--src/H5FDs3comms.c5
1 files 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\")",