From 9279b3657e70650f0f16a24a6bb191febfe469e4 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Thu, 21 Feb 2019 02:17:21 +0300 Subject: [PATCH] Nano-bug --- era_copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/era_copy.c b/era_copy.c index 78cb7e4..ff8a9d2 100644 --- a/era_copy.c +++ b/era_copy.c @@ -76,7 +76,7 @@ void read_era_invalidate_and_copy(FILE *fp, int src, int era_block_size, int pri if (offsets_len >= offsets_alloc) { offsets_alloc += 4096/sizeof(long long); - offsets = (long long*)realloc(offsets, offsets_alloc*2*sizeof(long long)); + offsets = (long long*)realloc(offsets, offsets_alloc*sizeof(long long)); } offsets[offsets_len++] = start; offsets[offsets_len++] = length;