diff options
author | midipix <writeonce@midipix.org> | 2020-12-05 14:35:11 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2020-12-05 14:35:11 +0000 |
commit | 256283431d773443ac6d5b3f1161ee20a5966560 (patch) | |
tree | ce1e8012ee55f0d9a9e2db574547a2e6a71684b5 /src | |
parent | d126e08c70188da942ea7a49b4b8fa0dc5ab51f0 (diff) | |
download | dalist-256283431d773443ac6d5b3f1161ee20a5966560.tar.bz2 dalist-256283431d773443ac6d5b3f1161ee20a5966560.tar.xz |
dalist_deposit_memory_block(): fix off-by-one typo.
Diffstat (limited to 'src')
-rw-r--r-- | src/dalist_memfn.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |