Skip to content

Commit eb46bbb

Browse files
mpfaffsqueek502
authored andcommitted
Fix realpathW out_buffer size
1 parent a7dfc64 commit eb46bbb

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
@@ -5747,7 +5747,7 @@ pub fn realpathZ(pathname: [*:0]const u8, out_buffer: *[max_path_bytes]u8) RealP
57475747
/// The result is encoded as WTF16LE.
57485748
///
57495749
/// Calling this function is usually a bug.
5750-
pub fn realpathW(pathname: []const u16, out_buffer: *[max_path_bytes]u16) RealPathError![]u16 {
5750+
pub fn realpathW(pathname: []const u16, out_buffer: *[std.os.windows.PATH_MAX_WIDE]u16) RealPathError![]u16 {
57515751
return fs.cwd().realpathW(pathname, out_buffer);
57525752
}
57535753

0 commit comments

Comments
 (0)