mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
update formatted printing when linking libc
This commit is contained in:
parent
7a4f704258
commit
5f9467d78f
@ -437,7 +437,7 @@ pub fn getAddressList(allocator: *mem.Allocator, name: []const u8, port: u16) !*
|
||||
const name_c = try std.cstr.addNullByte(allocator, name);
|
||||
defer allocator.free(name_c);
|
||||
|
||||
const port_c = try std.fmt.allocPrint(allocator, "{}\x00", port);
|
||||
const port_c = try std.fmt.allocPrint(allocator, "{}\x00", .{port});
|
||||
defer allocator.free(port_c);
|
||||
|
||||
const hints = os.addrinfo{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user