diff options
| author | Vincent Richard <[email protected]> | 2005-12-04 16:38:20 +0000 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2005-12-04 16:38:20 +0000 |
| commit | 1d1a9cf604330a3252193b159c48bfc07f2235c6 (patch) | |
| tree | af2e066ac3347173bb198c7630a9d6fa7e06c7f4 /src/platforms/posix/posixChildProcess.cpp | |
| parent | Fixed bug when connecting to IMAP with default authenticator. (diff) | |
| download | vmime-1d1a9cf604330a3252193b159c48bfc07f2235c6.tar.gz vmime-1d1a9cf604330a3252193b159c48bfc07f2235c6.zip | |
Fixed a bug in argument vector.
Diffstat (limited to 'src/platforms/posix/posixChildProcess.cpp')
| -rw-r--r-- | src/platforms/posix/posixChildProcess.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |
