diff options
-rw-r--r-- | src/cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cache.c b/src/cache.c index 3b98c1e..ca4234a 100644 --- a/src/cache.c +++ b/src/cache.c @@ -91,7 +91,7 @@ drop_at( l = itemat(cache, pos)->length; e = pos + l; cache->used -= l; - if (cache->used > e) + if (cache->used > pos) memmove(&cache->content[pos], &cache->content[e], cache->used - pos); } |