Fixed a bug in argument vector.
This commit is contained in:
parent
da6cd30611
commit
1d1a9cf604
@ -2,6 +2,11 @@
|
|||||||
VERSION 0.8.1cvs
|
VERSION 0.8.1cvs
|
||||||
================
|
================
|
||||||
|
|
||||||
|
2005-12-04 Vincent Richard <vincent@vincent-richard.net>
|
||||||
|
|
||||||
|
* posixChildProcess.cpp: fixed a bug in argument vector; last argument
|
||||||
|
was not NULL (thanks to Bertrand Benoit).
|
||||||
|
|
||||||
2005-11-27 Vincent Richard <vincent@vincent-richard.net>
|
2005-11-27 Vincent Richard <vincent@vincent-richard.net>
|
||||||
|
|
||||||
* maildirUtils.cpp: fixed problem with ':' in filename on Windows
|
* maildirUtils.cpp: fixed problem with ':' in filename on Windows
|
||||||
|
@ -247,7 +247,7 @@ void posixChildProcess::start(const std::vector <string> args, const int flags)
|
|||||||
m_argArray = argv; // to free later
|
m_argArray = argv; // to free later
|
||||||
|
|
||||||
argv[0] = m_processPath.getLastComponent().getBuffer().c_str();
|
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)
|
for (unsigned int i = 0 ; i < m_argVector.size() ; ++i)
|
||||||
argv[i + 1] = m_argVector[i].c_str();
|
argv[i + 1] = m_argVector[i].c_str();
|
||||||
|
Loading…
Reference in New Issue
Block a user