update formatted printing when linking libc
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);
|
const name_c = try std.cstr.addNullByte(allocator, name);
|
||||||
defer allocator.free(name_c);
|
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);
|
defer allocator.free(port_c);
|
||||||
|
|
||||||
const hints = os.addrinfo{
|
const hints = os.addrinfo{
|
||||||
|
|
Loading…
Reference in New Issue