mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
zld: dylib paths need nul terminator included
This commit is contained in:
parent
f750618846
commit
ae15281c05
@ -316,7 +316,7 @@ pub fn createLoadDylibCommand(
|
||||
) !GenericCommandWithData(macho.dylib_command) {
|
||||
const cmdsize = @intCast(u32, mem.alignForwardGeneric(
|
||||
u64,
|
||||
@sizeOf(macho.dylib_command) + name.len,
|
||||
@sizeOf(macho.dylib_command) + name.len + 1, // +1 for nul
|
||||
@sizeOf(u64),
|
||||
));
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user