mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-24 04:46:05 +08:00
execvp() needs launching path in first element of 2nd argument (like main() function's argv)
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
const char *cpath = [self.launchPath UTF8String];
|
||||
const char *cargs[self.arguments.count + 1];
|
||||
size_t i = 0;
|
||||
cargs[i++] = cpath;
|
||||
for (NSString *arg in self.arguments) {
|
||||
cargs[i++] = [arg UTF8String];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user