diff --git a/vlib/os/os_c.v b/vlib/os/os_c.v index 04b8dcb70d..a4b3ab6414 100644 --- a/vlib/os/os_c.v +++ b/vlib/os/os_c.v @@ -878,7 +878,7 @@ pub fn execvp(cmdpath string, args []string) ? { mut cargs := []charptr{} cargs << cmdpath.str for i in 0 .. args.len { - cargs << byteptr(args[i].str) + cargs << charptr(args[i].str) } cargs << charptr(0) res := C.execvp(charptr(cmdpath.str), cargs.data)