mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-27 07:21:31 +00:00
use copy proc group instead of copy_from_string
Co-authored-by: Laytan <laytanlaats@hotmail.com>
This commit is contained in:
@@ -227,7 +227,7 @@ _set_name :: proc(thread: ^Thread, name:string) {
|
||||
}
|
||||
|
||||
buf: [_MAX_PTHREAD_NAME_LENGTH]u8
|
||||
copy_from_string(buf[:], name)
|
||||
copy(buf[:], name)
|
||||
|
||||
// _MAX_PTHREAD_NAME_LENGTH includes terminating null
|
||||
buf[len(buf) - 1] = 0
|
||||
|
||||
Reference in New Issue
Block a user