From 365912693ce37f7a4448b7a68cc467c152e49add Mon Sep 17 00:00:00 2001 From: imaginos Date: Mon, 10 Jul 2006 02:48:57 +0000 Subject: [PATCH] fix initialization for execvp to const type git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@741 726aef4b-f618-498e-8847-2d620e286838 --- FileUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FileUtils.cpp b/FileUtils.cpp index b2be5458..a63ec7fd 100644 --- a/FileUtils.cpp +++ b/FileUtils.cpp @@ -342,7 +342,7 @@ int CExecSock::popen2(int & iReadFD, int & iWriteFD, const CString & sCommand) { dup2(rpipes[1], 2); close(wpipes[0]); close(rpipes[1]); - char *pArgv[] = + char * const pArgv[] = { "sh", "-c",