about summary refs log tree commit diff stats
path: root/089scenario_filesystem.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-08-21 08:38:20 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-08-21 08:38:20 -0700
commitf40137f1327ad3203eff5f6894baaa68a700cec1 (patch)
treeede862c2e4b89b3dc7d1fcf28f05327982934b37 /089scenario_filesystem.cc
parent10bbca643f16daf640caf040a1f86eb93e3d66e2 (diff)
downloadmu-f40137f1327ad3203eff5f6894baaa68a700cec1.tar.gz
3239
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 8acdac0b..ef20b159 100644
--- a/089scenario_filesystem.cc
+++ b/089scenario_filesystem.cc
@@ -189,7 +189,7 @@ string munge_filesystem_contents(const string& data, const string& filename, con
 
 void construct_filesystem_object(const map<string, string>& contents) {
   int filesystem_data_address = allocate(SIZE(contents)*2 + /*array length*/1);
-  int curr = filesystem_data_address + /*skip refcount*/1 + /*skip array length*/1;
+  int curr = filesystem_data_address + /*skip refcount and length*/2;
   for (map<string, string>::const_iterator p = contents.begin(); p != contents.end(); ++p) {
     put(Memory, curr, new_mu_string(p->first));
     curr++;