aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorMichael Pfaff <michael@pfaff.dev>2025-04-25 22:34:05 -0400
committerRyan Liptak <squeek502@hotmail.com>2025-10-08 17:07:38 -0700
commiteb46bbba34c1ccb0fbbbd755fd190e1b6eb939ec (patch)
tree8446f6fde599f1098c4a47d4516a0b22cb53e13f /lib/std
parenta7dfc6470f0cb73c53f11590cf89d6348a81030e (diff)
downloadzig-eb46bbba34c1ccb0fbbbd755fd190e1b6eb939ec.tar.gz
zig-eb46bbba34c1ccb0fbbbd755fd190e1b6eb939ec.zip
Fix realpathW out_buffer size
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/posix.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/posix.zig b/lib/std/posix.zig
index f2f1b4ef52..97807faa71 100644
--- 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);
}