mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
freebsd fix
This commit is contained in:
parent
6fabd36732
commit
674969665e
@ -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))
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user