X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fld65%2Ffileinfo.c;h=58b5826b16dfee5af601085f9b35cd903a0db6a2;hb=9cb70150559b44cd471d274c2725a3f8c40449ee;hp=97dba6aa11b5377fb6e117f888990d9350228ae8;hpb=453a8b704fdcefb5ce88185d233281415a47a992;p=cc65 diff --git a/src/ld65/fileinfo.c b/src/ld65/fileinfo.c index 97dba6aa1..58b5826b1 100644 --- a/src/ld65/fileinfo.c +++ b/src/ld65/fileinfo.c @@ -60,16 +60,16 @@ static FileInfo* NewFileInfo (void) -FileInfo* ReadFileInfo (FILE* F, ObjData* O attribute ((unused))) +FileInfo* ReadFileInfo (FILE* F, ObjData* O) /* Read a file info from a file and return it */ { /* Allocate a new FileInfo structure */ FileInfo* FI = NewFileInfo (); /* Read the fields from the file */ + FI->Name = MakeGlobalStringId (O, ReadVar (F)); FI->MTime = Read32 (F); FI->Size = Read32 (F); - FI->Name = ReadStr (F); /* Return the new struct */ return FI;