From a73a9e87fba2ac850ed0393cd6762461498af73d Mon Sep 17 00:00:00 2001 From: short <> Date: Thu, 6 Nov 2003 06:36:43 +0000 Subject: [PATCH 1/1] Fixed new 'alloc_length' resizing code. --- src/libcaptive/cc/sharedcachemap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcaptive/cc/sharedcachemap.c b/src/libcaptive/cc/sharedcachemap.c index 69d8842..055611a 100644 --- a/src/libcaptive/cc/sharedcachemap.c +++ b/src/libcaptive/cc/sharedcachemap.c @@ -200,7 +200,7 @@ size_t alloc_new; guint64 alloc64_new; gpointer buffer_new; - alloc64_new=CAPTIVE_ROUND_UP64((!size64_new ? 0 : MIN(size64_new*2,0x10000)),PAGE_SIZE); + alloc64_new=CAPTIVE_ROUND_UP64((!size64_new ? 0 : MAX(size64_new*2,0x10000)),PAGE_SIZE); alloc_new=alloc64_new; if (alloc_new!=alloc64_new) goto size_new_big; -- 1.8.3.1