| ... | @@ -2511,7 +2511,7 @@ fn addRpaths(self: *Zld, rpaths: []const []const u8) !void { | ... | @@ -2511,7 +2511,7 @@ fn addRpaths(self: *Zld, rpaths: []const []const u8) !void { |
| 2511 | for (rpaths) |rpath| { | 2511 | for (rpaths) |rpath| { |
| 2512 | const cmdsize = @intCast(u32, mem.alignForwardGeneric( | 2512 | const cmdsize = @intCast(u32, mem.alignForwardGeneric( |
| 2513 | u64, | 2513 | u64, |
| 2514 | @sizeOf(macho.rpath_command) + rpath.len, | 2514 | @sizeOf(macho.rpath_command) + rpath.len + 1, |
| 2515 | @sizeOf(u64), | 2515 | @sizeOf(u64), |
| 2516 | )); | 2516 | )); |
| 2517 | var rpath_cmd = emptyGenericCommandWithData(macho.rpath_command{ | 2517 | var rpath_cmd = emptyGenericCommandWithData(macho.rpath_command{ |