From: short <> Date: Thu, 6 Nov 2003 06:36:43 +0000 (+0000) Subject: Fixed new 'alloc_length' resizing code. X-Git-Tag: captive-1_0_2~10 X-Git-Url: http://git.jankratochvil.net/?p=captive.git;a=commitdiff_plain;h=a73a9e87fba2ac850ed0393cd6762461498af73d;hp=e68c703d63feda7b4b74821c2603a25b7fec7933 Fixed new 'alloc_length' resizing code. --- 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;