From 616488eec713de96ab1511817bbf375053648b1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Mon, 1 Dec 2025 04:31:35 +0100 Subject: [PATCH] std.fs: fix build error in selfExePath() on openbsd --- lib/std/fs.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/std/fs.zig b/lib/std/fs.zig index 26ce27e2b3..c95fa6e857 100644 --- a/lib/std/fs.zig +++ b/lib/std/fs.zig @@ -490,8 +490,7 @@ pub fn selfExePath(out_buffer: []u8) SelfExePathError![]u8 { const resolved_path = std.fmt.bufPrintSentinel(&resolved_path_buf, "{s}/{s}", .{ a_path, std.os.argv[0], - 0, - }) catch continue; + }, 0) catch continue; var real_path_buf: [max_path_bytes]u8 = undefined; if (posix.realpathZ(resolved_path, &real_path_buf)) |real_path| {