macho: LC_RPATH: reserve byte for null-terminator
This commit is contained in:
committed by
Andrew Kelley
parent
cf6e2d318a
commit
96b77e030f
@@ -2171,7 +2171,7 @@ fn addRpaths(self: *Zld, rpaths: []const []const u8) !void {
|
||||
for (rpaths) |rpath| {
|
||||
const cmdsize = @intCast(u32, mem.alignForwardGeneric(
|
||||
u64,
|
||||
@sizeOf(macho.rpath_command) + rpath.len,
|
||||
@sizeOf(macho.rpath_command) + rpath.len + 1,
|
||||
@sizeOf(u64),
|
||||
));
|
||||
var rpath_cmd = emptyGenericCommandWithData(macho.rpath_command{
|
||||
|
||||
Reference in New Issue
Block a user