X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Fincpath.c;h=767ad2a86e7b4832b81dd4e6b2f74a18536ea3cd;hb=dbbce2e939af8fd78f659e5c66eea8b002369ba2;hp=d0ba1f073cd04664703d3902a4eca64bfe7c0a90;hpb=4b1abd7cc9de9db1b49b877488b5c4ed93e43b7d;p=cc65 diff --git a/src/cc65/incpath.c b/src/cc65/incpath.c index d0ba1f073..767ad2a86 100644 --- a/src/cc65/incpath.c +++ b/src/cc65/incpath.c @@ -43,8 +43,10 @@ # include #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);