From 256283431d773443ac6d5b3f1161ee20a5966560 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 5 Dec 2020 14:35:11 +0000 Subject: dalist_deposit_memory_block(): fix off-by-one typo. --- src/dalist_memfn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dalist_memfn.c b/src/dalist_memfn.c index 1176875..6ac40d9 100644 --- a/src/dalist_memfn.c +++ b/src/dalist_memfn.c @@ -115,7 +115,7 @@ int dalist_deposit_memory_block( naddr_upper = naddr + alloc_size; /* chain of free nodes */ - while ((naddr_next + node_size) < naddr_upper) { + while ((naddr_next + node_size) <= naddr_upper) { fnode = (struct dalist_node *)naddr; fnode_next = (struct dalist_node *)naddr_next; -- cgit v1.2.3