]> git.sur5r.net Git - cc65/blobdiff - src/cc65/incpath.c
Fixed a bug
[cc65] / src / cc65 / incpath.c
index d0ba1f073cd04664703d3902a4eca64bfe7c0a90..767ad2a86e7b4832b81dd4e6b2f74a18536ea3cd 100644 (file)
 #  include <unistd.h>
 #endif
 
-#include "../common/xmalloc.h"
+/* common */
+#include "xmalloc.h"
 
+/* cc65 */
 #include "incpath.h"
 
 
@@ -84,7 +86,7 @@ static char* Add (char* Orig, const char* New)
     }
 
     /* Allocate memory for the new string */
-    NewPath = xmalloc (OrigLen + NewLen + 2);
+    NewPath = (char*) xmalloc (OrigLen + NewLen + 2);
 
     /* Copy the strings */
     memcpy (NewPath, Orig, OrigLen);