| ... | @@ -2171,7 +2171,7 @@ fn addRpaths(self: *Zld, rpaths: []const []const u8) !void { | ... | @@ -2171,7 +2171,7 @@ fn addRpaths(self: *Zld, rpaths: []const []const u8) !void { |
| 2171 | for (rpaths) |rpath| { | 2171 | for (rpaths) |rpath| { |
| 2172 | const cmdsize = @intCast(u32, mem.alignForwardGeneric( | 2172 | const cmdsize = @intCast(u32, mem.alignForwardGeneric( |
| 2173 | u64, | 2173 | u64, |
| 2174 | @sizeOf(macho.rpath_command) + rpath.len, | 2174 | @sizeOf(macho.rpath_command) + rpath.len + 1, |
| 2175 | @sizeOf(u64), | 2175 | @sizeOf(u64), |
| 2176 | )); | 2176 | )); |
| 2177 | var rpath_cmd = emptyGenericCommandWithData(macho.rpath_command{ | 2177 | var rpath_cmd = emptyGenericCommandWithData(macho.rpath_command{ |