diff --git a/lib/bufq.c b/lib/bufq.c index ff6b15900c..afcdb1796b 100644 --- a/lib/bufq.c +++ b/lib/bufq.c @@ -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; }