about summary refs log tree commit diff stats
path: root/089scenario_filesystem.cc
diff options
context:
space:
mode:
Diffstat (limited to '089scenario_filesystem.cc')
-rw-r--r--089scenario_filesystem.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/089scenario_filesystem.cc b/089scenario_filesystem.cc
index 6af3166b..dfbc245d 100644
--- a/089scenario_filesystem.cc
+++ b/089scenario_filesystem.cc
@@ -224,7 +224,7 @@ void construct_resources_object(const map<string, string>& contents) {
   trace(9999, "mem") << "storing refcount 1 in location " << resources_data_address << end();
   // wrap the resources data in a 'resources' object
   int resources_address = allocate(size_of_resources());
-  curr = resources_address+/*skip refcount*/1;
+  curr = resources_address+/*skip refcount*/1+/*offset of 'data' element*/1;
   put(Memory, curr, resources_data_address);
   trace(9999, "mem") << "storing resources data address " << resources_data_address << " in location " << curr << end();
   put(Memory, resources_address, 1);  // initialize refcount