fixed ptr misalignment

This commit is contained in:
applestash
2014-08-30 00:58:58 +10:00
parent 1858c055c2
commit a6c4112ee1
+1 -1
View File
@@ -443,7 +443,7 @@ int ImportNcchContent(cia_settings *ciaset)
return MEM_ERROR;
}
ncch_hdr *ncch0hdr = (ncch_hdr*)(ciaset->ciaSections.content.buffer+0x100);
ncch_hdr *ncch0hdr = (ncch_hdr*)ciaset->ciaSections.content.buffer;
for(int i = 1; i < ciaset->content.count; i++){
// Import
u8 *ncchpos = (u8*)(ciaset->ciaSections.content.buffer+ciaset->content.offset[i]);