Use automatic allocation for section data

This commit is contained in:
Rangi42
2024-02-22 15:45:09 -05:00
committed by Sylvie
parent 72e9f55368
commit dec1811d20
3 changed files with 5 additions and 9 deletions

View File

@@ -135,7 +135,7 @@ static void writesection(struct Section const &sect, FILE *f)
putlong(sect.alignOfs, f);
if (sect_HasData(sect.type)) {
fwrite(sect.data, 1, sect.size, f);
fwrite(sect.data.data(), 1, sect.size, f);
putlong(sect.patches.size(), f);
for (struct Patch const &patch : sect.patches)