diff options
Diffstat (limited to '089scenario_filesystem.cc')
-rw-r--r-- | 089scenario_filesystem.cc | 2 |
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++; |