diff --git a/src/sexpots/sexpots.c b/src/sexpots/sexpots.c
index e9af3a02448b5416c58376149fe168848fc8c2eb..cb8d8256bc722ea4f27e2fa5a2b24719c9cdf27e 100644
--- a/src/sexpots/sexpots.c
+++ b/src/sexpots/sexpots.c
@@ -203,7 +203,7 @@ static int syslog(int level, char *fmt, ...)
 			NULL,					// no user security identifier
 			1,						// one string
 			0,						// no data
-			&p,						// pointer to string array
+			(LPCSTR*)&p,			// pointer to string array
 			NULL);					// pointer to data
 
     return(retval);