mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-24 03:52:08 +00:00
Use std::string for section names
This commit is contained in:
@@ -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());
|
||||
}
|
||||
;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user