| ... | @@ -1006,7 +1006,7 @@ pub fn real(allocator: &Allocator, pathname: []const u8) -> %[]u8 { | ... | @@ -1006,7 +1006,7 @@ pub fn real(allocator: &Allocator, pathname: []const u8) -> %[]u8 { |
| 1006 | else => error.Unexpected, | 1006 | else => error.Unexpected, |
| 1007 | }; | 1007 | }; |
| 1008 | } | 1008 | } |
| 1009 | return allocator.realloc(u8, result_buf, cstr.len(result_buf.ptr)); | 1009 | return allocator.shrink(u8, result_buf, cstr.len(result_buf.ptr)); |
| 1010 | }, | 1010 | }, |
| 1011 | Os.linux => { | 1011 | Os.linux => { |
| 1012 | const fd = %return os.posixOpen(pathname, posix.O_PATH|posix.O_NONBLOCK|posix.O_CLOEXEC, 0, allocator); | 1012 | const fd = %return os.posixOpen(pathname, posix.O_PATH|posix.O_NONBLOCK|posix.O_CLOEXEC, 0, allocator); |