mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-01 16:28:09 +08:00
Update comment and check for strtoumax.
This commit is contained in:
parent
e852c8deb8
commit
8aa9043837
@ -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\")",
|
||||
|
Loading…
Reference in New Issue
Block a user