summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMitchell Hashimoto <m@mitchellh.com>2025-10-03 07:17:22 -0700
committerMitchell Hashimoto <m@mitchellh.com>2025-10-03 07:17:35 -0700
commit4d9718664327b74e6ad29f413739081bf2f1e4a8 (patch)
tree6c335e0819cfa64d6b91f9fa190cb4b3b4231d1f /src
parente0cf528576f998aea67c27fbc2384f920ac8381c (diff)
apprt/gtk: fix Zig 0.15
Diffstat (limited to 'src')
-rw-r--r--src/apprt/gtk/class/surface.zig6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/apprt/gtk/class/surface.zig b/src/apprt/gtk/class/surface.zig
index 5ca964fe3..0e0334ecf 100644
--- a/src/apprt/gtk/class/surface.zig
+++ b/src/apprt/gtk/class/surface.zig
@@ -850,15 +850,17 @@ pub const Surface = extern struct {
};
const title = std.mem.span(title_);
const body = body: {
- const exit_code = value.exit_code orelse break :body std.fmt.allocPrintZ(
+ const exit_code = value.exit_code orelse break :body std.fmt.allocPrintSentinel(
alloc,
"Command took {}.",
.{value.duration.round(std.time.ns_per_ms)},
+ 0,
) catch break :notify;
- break :body std.fmt.allocPrintZ(
+ break :body std.fmt.allocPrintSentinel(
alloc,
"Command took {} and exited with code {d}.",
.{ value.duration.round(std.time.ns_per_ms), exit_code },
+ 0,
) catch break :notify;
};
defer alloc.free(body);