Skip to content

Commit 7d25ecd

Browse files
committed
Fix realpathW out_buffer size
1 parent b8519fa commit 7d25ecd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/posix.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5605,7 +5605,7 @@ pub fn realpathZ(pathname: [*:0]const u8, out_buffer: *[max_path_bytes]u8) RealP
56055605
/// The result is encoded as WTF16LE.
56065606
///
56075607
/// Calling this function is usually a bug.
5608-
pub fn realpathW(pathname: []const u16, out_buffer: *[max_path_bytes]u16) RealPathError![]u16 {
5608+
pub fn realpathW(pathname: []const u16, out_buffer: *[std.os.windows.PATH_MAX_WIDE]u16) RealPathError![]u16 {
56095609
return fs.cwd().realpathW(pathname, out_buffer);
56105610
}
56115611

0 commit comments

Comments
 (0)