mirror of
https://github.com/curl/curl.git
synced 2026-08-25 22:23:53 +03:00
curl_setup: use SIZE_MAX instead of SIZE_T_MAX
As SIZE_MAX exists in C99 Assisted-by: Stefan Eissing Assisted-by: Jay Satiro Ref: #18406 Closes #18426
This commit is contained in:
parent
7ceb9c54aa
commit
93f333c18f
13 changed files with 24 additions and 24 deletions
|
|
@ -1683,7 +1683,7 @@ static CURLcode setopt_cptr(struct Curl_easy *data, CURLoption option,
|
|||
/*
|
||||
* Check that requested length does not overflow the size_t type.
|
||||
*/
|
||||
else if(s->postfieldsize > SIZE_T_MAX)
|
||||
else if(s->postfieldsize > SIZE_MAX)
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
#endif
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue