mirror of
https://github.com/ErikAndren/cue2pops-mac.git
synced 2025-04-19 15:38:04 +02:00
Make memcpy more architecture generic (no hardcoded assumption that an int is 4 bytes
This commit is contained in:
parent
0109bb0ab3
commit
b0df891d6d
1 changed files with 2 additions and 2 deletions
|
@ -991,8 +991,8 @@ int main(int argc, char **argv)
|
|||
printf("daTrack_ptr LBA = %d (%Xh)\n\n", daTrack_ptr / SECTORSIZE, daTrack_ptr / SECTORSIZE);
|
||||
}
|
||||
|
||||
memcpy(headerbuf + 1032, §or_count, 4); // Sector Count (LEHEX)
|
||||
memcpy(headerbuf + 1036, §or_count, 4); // Sector Count (LEHEX)
|
||||
memcpy(headerbuf + 1032, §or_count, sizeof(sector_count)); // Sector Count (LEHEX)
|
||||
memcpy(headerbuf + 1036, §or_count, sizeof(sector_count)); // Sector Count (LEHEX)
|
||||
|
||||
headerbuf[1024] = 0x6B;
|
||||
headerbuf[1025] = 0x48;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue