]> git.sur5r.net Git - cc65/blobdiff - src/cc65/incpath.c
Fixed a bug
[cc65] / src / cc65 / incpath.c
index 35e6656db50de78a6e8979a4dce5571d83508513..767ad2a86e7b4832b81dd4e6b2f74a18536ea3cd 100644 (file)
@@ -45,7 +45,7 @@
 
 /* common */
 #include "xmalloc.h"
-         
+
 /* cc65 */
 #include "incpath.h"
 
@@ -86,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);