@@ -571,7 +571,7 @@ pub const ChildProcess = struct {
571
571
// to match posix semantics
572
572
const app_name = x : {
573
573
if (self .cwd ) | cwd | {
574
- const resolved = try fs .path .resolve (self .allocator , [_ ][]const u8 { cwd , self .argv [0 ] });
574
+ const resolved = try fs .path .resolve (self .allocator , & [_ ][]const u8 { cwd , self .argv [0 ] });
575
575
defer self .allocator .free (resolved );
576
576
break :x try cstr .addNullByte (self .allocator , resolved );
577
577
} else {
@@ -613,10 +613,10 @@ pub const ChildProcess = struct {
613
613
retry : while (it .next ()) | search_path | {
614
614
var ext_it = mem .tokenize (PATHEXT , ";" );
615
615
while (ext_it .next ()) | app_ext | {
616
- const app_basename = try mem .concat (self .allocator , u8 , [_ ][]const u8 { app_name [0 .. app_name .len - 1 ], app_ext });
616
+ const app_basename = try mem .concat (self .allocator , u8 , & [_ ][]const u8 { app_name [0 .. app_name .len - 1 ], app_ext });
617
617
defer self .allocator .free (app_basename );
618
618
619
- const joined_path = try fs .path .join (self .allocator , [_ ][]const u8 { search_path , app_basename });
619
+ const joined_path = try fs .path .join (self .allocator , & [_ ][]const u8 { search_path , app_basename });
620
620
defer self .allocator .free (joined_path );
621
621
622
622
const joined_path_w = try unicode .utf8ToUtf16LeWithNull (self .allocator , joined_path );
0 commit comments