ci: fix for os.execvp on macos (cargs << charptr(cmdpath.str) too)

pull/7668/head
Delyan Angelov 2020-12-28 20:20:56 +02:00
parent 8fe85bcc33
commit fe7fa7077e
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 1 additions and 1 deletions

View File

@ -876,7 +876,7 @@ pub fn create(path string) ?File {
// the child process will take control over execution.
pub fn execvp(cmdpath string, args []string) ? {
mut cargs := []charptr{}
cargs << cmdpath.str
cargs << charptr(cmdpath.str)
for i in 0 .. args.len {
cargs << charptr(args[i].str)
}