mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-05-29 20:36:01 +03:00
std.fmt: Remove bufPrintZ() in favor of bufPrintSentinel()
This commit is contained in:
@@ -13851,7 +13851,7 @@ fn netLookupFallible(
|
||||
const name_c = name_buffer[0..name.len :0];
|
||||
|
||||
var port_buffer: [8]u8 = undefined;
|
||||
const port_c = std.fmt.bufPrintZ(&port_buffer, "{d}", .{options.port}) catch unreachable;
|
||||
const port_c = std.fmt.bufPrintSentinel(&port_buffer, "{d}", .{options.port}, 0) catch unreachable;
|
||||
|
||||
const hints: posix.addrinfo = .{
|
||||
.flags = .{ .CANONNAME = options.canonical_name_buffer != null, .NUMERICSERV = true },
|
||||
|
||||
Reference in New Issue
Block a user