Use std::string for section names

This commit is contained in:
Rangi42
2024-03-02 04:47:02 -05:00
parent b488d3a90f
commit ba00cf5684
4 changed files with 11 additions and 16 deletions

View File

@@ -1329,7 +1329,7 @@ string : T_STRING
fatalerror("\"%s\" does not belong to any section\n", sym->name);
// Section names are capped by rgbasm's maximum string length,
// so this currently can't overflow.
strcpy($$, section->name);
strcpy($$, section->name.c_str());
}
;