Fix an SDAS object error message to use the valid section name variable

This commit is contained in:
Rangi
2026-07-21 13:41:53 -04:00
parent b5681c0d34
commit 9def9c9aa8
+1 -5
View File
@@ -294,11 +294,7 @@ void sdobj_ReadFile(FileStackNode const &src, FILE *file, std::vector<Symbol> &f
uint32_t tmp = readInt(where, token, numberBase);
if (tmp > UINT16_MAX) {
fatalAt(
where,
"Area \"%s\" is larger than the GB address space",
curSection->name.c_str()
);
fatalAt(where, "Area \"%s\" is larger than the GB address space", sectName);
}
curSection->size = tmp;