| author | |
| committer | |
| log | cd10ce9a67668bfdf1fd7ba57b499d93caa3c00f |
| tree | f83609a848843f5693d603bd8bd46a03e7fb00ec |
| parent | a794287573a84f04f675efeb3278ebc00755a57b |
2 files changed, 1 insertions(+), 6 deletions(-)
lib/std/Io/Threaded.zig+1-1| ... | ... | @@ -13851,7 +13851,7 @@ fn netLookupFallible( |
| 13851 | 13851 | const name_c = name_buffer[0..name.len :0]; |
| 13852 | 13852 | |
| 13853 | 13853 | var port_buffer: [8]u8 = undefined; |
| 13854 | const port_c = std.fmt.bufPrintZ(&port_buffer, "{d}", .{options.port}) catch unreachable; | |
| 13854 | const port_c = std.fmt.bufPrintSentinel(&port_buffer, "{d}", .{options.port}, 0) catch unreachable; | |
| 13855 | 13855 | |
| 13856 | 13856 | const hints: posix.addrinfo = .{ |
| 13857 | 13857 | .flags = .{ .CANONNAME = options.canonical_name_buffer != null, .NUMERICSERV = true }, |
lib/std/fmt.zig-5| ... | ... | @@ -602,11 +602,6 @@ pub fn bufPrint(buf: []u8, comptime fmt: []const u8, args: anytype) BufPrintErro |
| 602 | 602 | return w.buffered(); |
| 603 | 603 | } |
| 604 | 604 | |
| 605 | /// Deprecated in favor of `bufPrintSentinel` | |
| 606 | pub fn bufPrintZ(buf: []u8, comptime fmt: []const u8, args: anytype) BufPrintError![:0]u8 { | |
| 607 | return try bufPrintSentinel(buf, fmt, args, 0); | |
| 608 | } | |
| 609 | ||
| 610 | 605 | pub fn bufPrintSentinel( |
| 611 | 606 | buf: []u8, |
| 612 | 607 | comptime fmt: []const u8, |