summaryrefslogtreecommitdiff
path: root/src/cache.c
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-03-29 15:28:06 +0100
committerjcid <devnull@localhost>2008-03-29 15:28:06 +0100
commit66f72ec847a387e808b798172da882dde3f3dda7 (patch)
treebe525b25538556e2cb4d38a19799be89773cc4a4 /src/cache.c
parent072933308a1128555e6e56f519fdc9603d060d0f (diff)
- Switched URL_DATA type from char* to a dStr.
Diffstat (limited to 'src/cache.c')
-rw-r--r--src/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cache.c b/src/cache.c
index 185c7846..933ad93e 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -576,7 +576,7 @@ static void Cache_parse_header(CacheEntry_t *entry)
* with huge files (e.g. iso files).
* Note: the buffer grows automatically. */
dStr_free(entry->Data, 1);
- entry->Data = dStr_sized_new(MIN(entry->ExpectedSize+1, MAX_INIT_BUF));
+ entry->Data = dStr_sized_new(MIN(entry->ExpectedSize, MAX_INIT_BUF));
}
/* Get Content-Type */