rgbasm: Don't allocate an unnecessary buffer.

This commit is contained in:
Anthony J. Bentley
2014-09-23 22:22:39 -06:00
parent 284600ef1f
commit 056109652d

View File

@@ -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);
} }