mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
rgbasm: Don't allocate an unnecessary buffer.
This commit is contained in:
@@ -61,7 +61,7 @@ struct PatchSymbol *tHashedPatchSymbols[HASHSIZE];
|
|||||||
struct Section *pSectionList = NULL, *pCurrentSection = NULL;
|
struct Section *pSectionList = NULL, *pCurrentSection = NULL;
|
||||||
struct PatchSymbol *pPatchSymbols = NULL;
|
struct PatchSymbol *pPatchSymbols = NULL;
|
||||||
struct PatchSymbol **ppPatchSymbolsTail = &pPatchSymbols;
|
struct PatchSymbol **ppPatchSymbolsTail = &pPatchSymbols;
|
||||||
char tzObjectname[_MAX_PATH];
|
char *tzObjectname;
|
||||||
struct SectionStackEntry *pSectionStack = NULL;
|
struct SectionStackEntry *pSectionStack = NULL;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -592,7 +592,7 @@ out_PrepPass2(void)
|
|||||||
void
|
void
|
||||||
out_SetFileName(char *s)
|
out_SetFileName(char *s)
|
||||||
{
|
{
|
||||||
strcpy(tzObjectname, s);
|
tzObjectname = s;
|
||||||
if (CurrentOptions.verbose) {
|
if (CurrentOptions.verbose) {
|
||||||
printf("Output filename %s\n", s);
|
printf("Output filename %s\n", s);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user