From: cuz Date: Sat, 8 Nov 2003 23:20:49 +0000 (+0000) Subject: Files in the file tables have their names in the string pool X-Git-Tag: V2.12.0~1177 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=587b80792175b6f7d1bed629afca3d8cadd08384;p=cc65 Files in the file tables have their names in the string pool git-svn-id: svn://svn.cc65.org/cc65/trunk@2623 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/od65/dump.c b/src/od65/dump.c index c01bbcbe7..7c7b880b9 100644 --- a/src/od65/dump.c +++ b/src/od65/dump.c @@ -380,9 +380,9 @@ void DumpObjFiles (FILE* F, unsigned long Offset) for (I = 0; I < Count; ++I) { /* Read the data for one file */ + const char* Name = GetString (&StrPool, ReadVar (F)); unsigned long MTime = Read32 (F); unsigned long Size = Read32 (F); - char* Name = ReadStr (F); unsigned Len = strlen (Name); /* Print the header */ @@ -392,9 +392,6 @@ void DumpObjFiles (FILE* F, unsigned long Offset) printf (" Name:%*s\"%s\"\n", 24-Len, "", Name); printf (" Size:%26lu\n", Size); printf (" Modification time:%13lu (%s)\n", MTime, TimeToStr (MTime)); - - /* Free the Name */ - xfree (Name); } /* Destroy the string pool */