about summary refs log tree commit diff stats
path: root/subx/021translate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'subx/021translate.cc')
-rw-r--r--subx/021translate.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/subx/021translate.cc b/subx/021translate.cc
index b8e5159a..5757805e 100644
--- a/subx/021translate.cc
+++ b/subx/021translate.cc
@@ -43,7 +43,7 @@ void dump_elf(const string& program, const char* filename) {
   ofstream out(filename, ios::binary);
   dump_elf_header(out);
   for (size_t i = 1;  i < End_of_program;  ++i) {
-    char c = Mem.at(i);
+    char c = read_mem_u8(i);
     out.write(&c, sizeof(c));
   }
   out.close();