use copy proc group instead of copy_from_string

Co-authored-by: Laytan <laytanlaats@hotmail.com>
This commit is contained in:
WP. Yingamphol
2025-07-15 09:30:49 +07:00
committed by GitHub
parent 05b769734b
commit 5ffba9b222

View File

@@ -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