]> git.sur5r.net Git - cc65/blobdiff - src/ld65/objdata.c
Use cc65 character classification routines
[cc65] / src / ld65 / objdata.c
index 8deecb0f730ad5fd3d427b645771a38f730aa4c8..5183c7d817c2f51660e1f914d4a842727e589893 100644 (file)
@@ -41,6 +41,7 @@
 
 /* ld65 */
 #include "error.h"
+#include "fileinfo.h"
 #include "objdata.h"
 
 
@@ -110,7 +111,7 @@ void FreeObjData (ObjData* O)
     xfree (O->Name);
     xfree (O->Imports);
     xfree (O->Exports);
-    xfree (O->DbgSyms);            
+    xfree (O->DbgSyms);
     xfree (O->LineInfos);
     xfree (O);
 }
@@ -144,7 +145,7 @@ const char* GetSourceFileName (const ObjData* O, unsigned Index)
        PRECONDITION (Index < O->FileCount);
 
        /* Return the name */
-       return O->Files[Index];
+       return O->Files[Index]->Name;
 
     }
 }