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:
Daniel Stenberg 2025-08-29 09:24:39 +02:00
parent 7ceb9c54aa
commit 93f333c18f
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
13 changed files with 24 additions and 24 deletions

View file

@ -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 {