fixing obvious typo in darwin_HOST_OS code (currently does not compile).
authorandy@galois.com <unknown>
Wed, 13 Dec 2006 16:06:01 +0000 (16:06 +0000)
committerandy@galois.com <unknown>
Wed, 13 Dec 2006 16:06:01 +0000 (16:06 +0000)
rts/Linker.c

index bd0b543..b1bfd7d 100644 (file)
@@ -1286,7 +1286,7 @@ loadObj( char *path )
     // reading the file, and then we misalign oc->image on purpose so
     // that the actual sections end up aligned again.
    oc->misalignment = machoGetMisalignment(f);
-   oc->image = stgMallocBytes(oc->fileSize + misalignment, "loadObj(image)");
+   oc->image = stgMallocBytes(oc->fileSize + oc->misalignment, "loadObj(image)");
 #  else
    oc->image = stgMallocBytes(oc->fileSize, "loadObj(image)");
 #  endif