summaryrefslogtreecommitdiff
path: root/source3/popt/findme.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/popt/findme.c')
-rw-r--r--source3/popt/findme.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/popt/findme.c b/source3/popt/findme.c
index a950e50018..b28981ba1f 100644
--- a/source3/popt/findme.c
+++ b/source3/popt/findme.c
@@ -22,8 +22,8 @@ const char * findProgramPath(const char * argv0) {
if (path == NULL) return NULL;
- start = pathbuf = alloca(strlen(path) + 1);
- buf = malloc(strlen(path) + strlen(argv0) + sizeof("/"));
+ start = pathbuf = (char *)alloca(strlen(path) + 1);
+ buf = (char *)malloc(strlen(path) + strlen(argv0) + sizeof("/"));
if (buf == NULL) return NULL; /* XXX can't happen */
strcpy(pathbuf, path);