1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

freebsd fix

This commit is contained in:
Alexander Medvednikov 2019-07-16 16:22:25 +02:00
parent 6fabd36732
commit 674969665e

View File

@ -557,7 +557,7 @@ pub fn executable() string {
buf := [1024]byte
size := 1024
C.sysctl(mib, 4, buf, &size, 0, 0)
return string(buf)
return tos(buf, strlen(buf))
}
}