freebsd fix

pull/1181/head
Alexander Medvednikov 2019-07-16 16:22:25 +02:00
parent 6fabd36732
commit 674969665e
1 changed files with 1 additions and 1 deletions

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))
}
}