From 48110c4353339200965f98f4da9b66213bb35d86 Mon Sep 17 00:00:00 2001 From: Michael Cohen Date: Fri, 31 May 2019 22:43:00 +1000 Subject: [PATCH] Fix bug in map handling (#94) Fixes issue #92 --- aff4/aff4_map.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aff4/aff4_map.cc b/aff4/aff4_map.cc index 1969be6..46c524f 100644 --- a/aff4/aff4_map.cc +++ b/aff4/aff4_map.cc @@ -566,7 +566,7 @@ AFF4Status AFF4Map::WriteStream(AFF4Stream* source, ProgressContext* progress) { RETURN_IF_ERROR(last_target->WriteStream(source, progress)); // Add a single range to cover the bulk of the image. - AddRange(0, last_target->Size(), last_target->Size(), last_target); + AddRange(0, 0, last_target->Size(), last_target); return STATUS_OK; }