authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2021-05-27 11:00:26+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2021-05-27 11:36:13+02:00
logae15281c0577694e17a3301fd83d097ed9991bad
tree111ec9f99e2188e5ffbdfb5f8cfb5449938b6c3b
parentf750618846f598836e5170c31ac4988df2d6f00d

zld: dylib paths need nul terminator included


1 files changed, 1 insertions(+), 1 deletions(-)

src/link/MachO/commands.zig+1-1
...@@ -316,7 +316,7 @@ pub fn createLoadDylibCommand(...@@ -316,7 +316,7 @@ pub fn createLoadDylibCommand(
316) !GenericCommandWithData(macho.dylib_command) {316) !GenericCommandWithData(macho.dylib_command) {
317 const cmdsize = @intCast(u32, mem.alignForwardGeneric(317 const cmdsize = @intCast(u32, mem.alignForwardGeneric(
318 u64,318 u64,
319 @sizeOf(macho.dylib_command) + name.len,319 @sizeOf(macho.dylib_command) + name.len + 1, // +1 for nul
320 @sizeOf(u64),320 @sizeOf(u64),
321 ));321 ));
322322