From 672bf8bea7b01a1828fc21e6689c8d3fa5f46ea6 Mon Sep 17 00:00:00 2001 From: Mustafa M Date: Fri, 22 Mar 2019 17:25:25 -0400 Subject: [PATCH] realpath buffer is a vector (#31433) --- base/path.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/path.jl b/base/path.jl index ca3f393dbe4c7..5c44b9ed5c292 100644 --- a/base/path.jl +++ b/base/path.jl @@ -339,7 +339,7 @@ function realpath(path::AbstractString) path, 0, 0x03, C_NULL, 3, 0x02000000, 0) windowserror(:realpath, h == -1) try - buf = Array{UInt16}(undef, 256) + buf = Vector{UInt16}(undef, 256) oldlen = len = length(buf) while len >= oldlen len = ccall(:GetFinalPathNameByHandleW, stdcall, UInt32, (Int, Ptr{UInt16}, UInt32, UInt32),