From 587b80792175b6f7d1bed629afca3d8cadd08384 Mon Sep 17 00:00:00 2001 From: cuz Date: Sat, 8 Nov 2003 23:20:49 +0000 Subject: [PATCH] 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 --- src/od65/dump.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 */