From 1cf1e648feed823244731eef5f56bd34e15cb045 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 31 Jul 2006 04:30:55 +0000 Subject: r17334: Some C++ warnings (This used to be commit 8ae7ed1f3cecbb5285313d17b5f9511e2e622f0b) --- source3/popt/findme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/popt') 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); -- cgit