]> git.sur5r.net Git - cc65/blobdiff - src/ld65/fileio.c
Added the io module
[cc65] / src / ld65 / fileio.c
index 3876c12ea4009d5fbb2b05a172a8598960ea3eaa..de80d5facc478a1e96d164066e93fa4637e296b0 100644 (file)
@@ -35,8 +35,9 @@
 
 #include <string.h>
 
+#include "../common/xmalloc.h"
+
 #include "error.h"
-#include "mem.h"
 #include "fileio.h"
 
 
@@ -232,7 +233,7 @@ char* ReadMallocedStr (FILE* F)
     unsigned Len = Read8 (F);
 
     /* Allocate memory */
-    char* Str = Xmalloc (Len + 1);
+    char* Str = xmalloc (Len + 1);
 
     /* Read the string itself */
     ReadData (F, Str, Len);
@@ -267,3 +268,4 @@ void* ReadData (FILE* F, void* Data, unsigned Size)
 
 
 
+