diff --git a/ChangeLog b/ChangeLog index ab536d02..b9743e8d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,11 @@ VERSION 0.8.1cvs ================ +2005-12-04 Vincent Richard + + * posixChildProcess.cpp: fixed a bug in argument vector; last argument + was not NULL (thanks to Bertrand Benoit). + 2005-11-27 Vincent Richard * maildirUtils.cpp: fixed problem with ':' in filename on Windows diff --git a/src/platforms/posix/posixChildProcess.cpp b/src/platforms/posix/posixChildProcess.cpp index 05681bb5..ea91ed25 100644 --- a/src/platforms/posix/posixChildProcess.cpp +++ b/src/platforms/posix/posixChildProcess.cpp @@ -247,7 +247,7 @@ void posixChildProcess::start(const std::vector args, const int flags) m_argArray = argv; // to free later argv[0] = m_processPath.getLastComponent().getBuffer().c_str(); - argv[args.size()] = NULL; + argv[args.size() + 1] = NULL; for (unsigned int i = 0 ; i < m_argVector.size() ; ++i) argv[i + 1] = m_argVector[i].c_str();