From cfd4f0c69ca0febf79beda1a496f5f82a7e2973e Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sat, 23 Nov 2019 21:05:49 +0300 Subject: [PATCH] os: fix fullpath call on windows --- vlib/os/os.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/os/os.v b/vlib/os/os.v index 17c33a2a49..664a7b5e6b 100644 --- a/vlib/os/os.v +++ b/vlib/os/os.v @@ -869,7 +869,7 @@ pub fn realpath(fpath string) string { mut fullpath := calloc( MAX_PATH ) mut res := 0 $if windows { - ret := C._fullpath(fpath.str, fullpath) + ret := C._fullpath(fullpath, fpath.str, MAX_PATH) if ret == 0 { return fpath }