summaryrefslogtreecommitdiff
path: root/src/glibext/gbuffercache.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-11-09 13:18:35 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-11-09 13:18:35 (GMT)
commitc301f7e77eaca632a491b5b4417c8e4b9dce2570 (patch)
tree501ccdd583e35ccad4f3a0592f2fb1b0870e0d5f /src/glibext/gbuffercache.c
parent459b345d69532825f21bdcd3e4f92009b0a046dc (diff)
Introduced the first features of a hexadecimal viewer.
Diffstat (limited to 'src/glibext/gbuffercache.c')
-rw-r--r--src/glibext/gbuffercache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glibext/gbuffercache.c b/src/glibext/gbuffercache.c
index 82d77c0..322631f 100644
--- a/src/glibext/gbuffercache.c
+++ b/src/glibext/gbuffercache.c
@@ -1321,7 +1321,7 @@ void g_buffer_cache_truncate(GBufferCache *cache, size_t max)
removed = cache->used - max;
- cache->used = max - 1;
+ cache->used = max;
if (removed > 0)
{