also rename the *other* SIZE_MAX

This commit is contained in:
Stefan Eissing 2025-08-26 17:09:34 +02:00
parent 06b1ac8cc9
commit 519faefd9e
No known key found for this signature in database

View file

@ -310,7 +310,7 @@ static struct buf_chunk *get_spare(struct bufq *q)
}
else {
/* Check for integer overflow before allocation */
if(q->chunk_size > SIZE_MAX - sizeof(*chunk)) {
if(q->chunk_size > SIZE_T_MAX - sizeof(*chunk)) {
return NULL;
}