From 056109652d78701062ff0bb925a07c2c6ad33a2c Mon Sep 17 00:00:00 2001 From: "Anthony J. Bentley" Date: Tue, 23 Sep 2014 22:22:39 -0600 Subject: [PATCH] rgbasm: Don't allocate an unnecessary buffer. --- src/asm/output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/asm/output.c b/src/asm/output.c index c36b0e88..fe075cee 100644 --- a/src/asm/output.c +++ b/src/asm/output.c @@ -61,7 +61,7 @@ struct PatchSymbol *tHashedPatchSymbols[HASHSIZE]; struct Section *pSectionList = NULL, *pCurrentSection = NULL; struct PatchSymbol *pPatchSymbols = NULL; struct PatchSymbol **ppPatchSymbolsTail = &pPatchSymbols; -char tzObjectname[_MAX_PATH]; +char *tzObjectname; struct SectionStackEntry *pSectionStack = NULL; /* @@ -592,7 +592,7 @@ out_PrepPass2(void) void out_SetFileName(char *s) { - strcpy(tzObjectname, s); + tzObjectname = s; if (CurrentOptions.verbose) { printf("Output filename %s\n", s); }