aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-12-04 16:38:20 +0000
committerVincent Richard <[email protected]>2005-12-04 16:38:20 +0000
commit1d1a9cf604330a3252193b159c48bfc07f2235c6 (patch)
treeaf2e066ac3347173bb198c7630a9d6fa7e06c7f4
parentFixed bug when connecting to IMAP with default authenticator. (diff)
downloadvmime-1d1a9cf604330a3252193b159c48bfc07f2235c6.tar.gz
vmime-1d1a9cf604330a3252193b159c48bfc07f2235c6.zip
Fixed a bug in argument vector.
-rw-r--r--ChangeLog5
-rw-r--r--src/platforms/posix/posixChildProcess.cpp2
2 files changed, 6 insertions, 1 deletions
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 <[email protected]>
+
+ * posixChildProcess.cpp: fixed a bug in argument vector; last argument
+ was not NULL (thanks to Bertrand Benoit).
+
2005-11-27 Vincent Richard <[email protected]>
* 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 <string> 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();