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 }