From 719a77db362a51309e90a75253788223936b276c Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Thu, 3 Jul 2014 12:01:00 +0200 Subject: [PATCH] [mc] Bug: MC was reading from the wrong region --- src/mc/mc_compare.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mc/mc_compare.cpp b/src/mc/mc_compare.cpp index 8d0f597204..b62dc7ccf7 100644 --- a/src/mc/mc_compare.cpp +++ b/src/mc/mc_compare.cpp @@ -107,7 +107,7 @@ static int compare_areas_with_type(struct mc_compare_state& state, void* data1 = mc_snapshot_read_region(real_area1, region1, alloca(type->byte_size), type->byte_size); void* data2 = - mc_snapshot_read_region(real_area2, region1, alloca(type->byte_size), type->byte_size); + mc_snapshot_read_region(real_area2, region2, alloca(type->byte_size), type->byte_size); return (memcmp(data1, data2, type->byte_size) != 0); break; } -- 2.20.1