| ... | @@ -636,7 +636,7 @@ pub const ChildProcess = struct { | ... | @@ -636,7 +636,7 @@ pub const ChildProcess = struct { |
| 636 | retry: while (it.next()) |search_path| { | 636 | retry: while (it.next()) |search_path| { |
| 637 | var ext_it = mem.tokenize(PATHEXT, ";"); | 637 | var ext_it = mem.tokenize(PATHEXT, ";"); |
| 638 | while (ext_it.next()) |app_ext| { | 638 | while (ext_it.next()) |app_ext| { |
| 639 | const app_basename = try mem.concat(self.allocator, u8, &[_][]const u8{ app_name[0 .. app_name.len - 1], app_ext }); | 639 | const app_basename = try mem.concat(self.allocator, u8, &[_][]const u8{ app_name, app_ext }); |
| 640 | defer self.allocator.free(app_basename); | 640 | defer self.allocator.free(app_basename); |
| 641 | | 641 | |
| 642 | const joined_path = try fs.path.join(self.allocator, &[_][]const u8{ search_path, app_basename }); | 642 | const joined_path = try fs.path.join(self.allocator, &[_][]const u8{ search_path, app_basename }); |