mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Ensure that the arguments passed to sys::Program::ExecuteAndWait include
the program name as the first argument. Thanks go to Markus Oberhumer for noticing this problem. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21220 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
01c5513683
commit
c30088f961
@ -394,8 +394,9 @@ private:
|
||||
|
||||
// Invoke the program
|
||||
const char** Args = (const char**)
|
||||
alloca(sizeof(const char*)*(action->args.size()+1));
|
||||
for (unsigned i = 0; i != action->args.size(); ++i)
|
||||
alloca(sizeof(const char*)*(action->args.size()+2));
|
||||
Args[0] = action->program.toString().c_str();
|
||||
for (unsigned i = 1; i != action->args.size(); ++i)
|
||||
Args[i] = action->args[i].c_str();
|
||||
Args[action->args.size()] = 0; // null terminate list.
|
||||
if (isSet(TIME_ACTIONS_FLAG)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user