update formatted printing when linking libc

master
Andrew Kelley 2019-12-08 23:39:30 -05:00
parent 7a4f704258
commit 5f9467d78f
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9
1 changed files with 1 additions and 1 deletions

View File

@ -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{