commit eb46bbba34c1ccb0fbbbd755fd190e1b6eb939ec (tree) parent a7dfc6470f0cb73c53f11590cf89d6348a81030e Author: Michael Pfaff <michael@pfaff.dev> Date: Fri, 25 Apr 2025 22:34:05 -0400 Fix realpathW out_buffer size Diffstat:
| M | lib/std/posix.zig | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/posix.zig b/lib/std/posix.zig @@ -5747,7 +5747,7 @@ pub fn realpathZ(pathname: [*:0]const u8, out_buffer: *[max_path_bytes]u8) RealP /// The result is encoded as WTF16LE. /// /// Calling this function is usually a bug. -pub fn realpathW(pathname: []const u16, out_buffer: *[max_path_bytes]u16) RealPathError![]u16 { +pub fn realpathW(pathname: []const u16, out_buffer: *[std.os.windows.PATH_MAX_WIDE]u16) RealPathError![]u16 { return fs.cwd().realpathW(pathname, out_buffer); }