aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.zig
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2025-09-22 15:30:57 +0000
committers-ol <s+removethis@s-ol.nu>2025-09-22 15:30:57 +0000
commitbe392e7bee927065e22bac70312c005af11d7bcd (patch)
tree1a673c9e1b3a36eacb31affd8851fdd841ebce06 /src/util.zig
parentTSVSource: fix initialization in thread (diff)
downloadglsl-view-be392e7bee927065e22bac70312c005af11d7bcd.tar.gz
glsl-view-be392e7bee927065e22bac70312c005af11d7bcd.zip
update for Zig 0.15.1
Diffstat (limited to 'src/util.zig')
-rw-r--r--src/util.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.zig b/src/util.zig
index e168326..a73a8ce 100644
--- a/src/util.zig
+++ b/src/util.zig
@@ -7,12 +7,12 @@ var fba = std.heap.FixedBufferAllocator.init(state.buf[0..]);
pub fn tmpZ(str: []const u8) ![:0]const u8 {
fba.reset();
- return try std.fmt.allocPrintZ(fba.allocator(), "{s}", .{str});
+ return try std.fmt.allocPrintSentinel(fba.allocator(), "{s}", .{str}, 0);
}
pub fn tmpFmtZ(comptime fmt: []const u8, args: anytype) ![:0]const u8 {
fba.reset();
- return try std.fmt.allocPrintZ(fba.allocator(), fmt, args);
+ return try std.fmt.allocPrintSentinel(fba.allocator(), fmt, args, 0);
}
pub fn tmpJoinZ(separator: []const u8, slices: []const []const u8) ![:0]const u8 {