[libc] Add null-terminator to the thread name obtained from the syscall.
authorSiva Chandra Reddy <sivachandra@google.com>
Thu, 20 Apr 2023 21:30:36 +0000 (21:30 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Thu, 20 Apr 2023 21:35:05 +0000 (21:35 +0000)
commit8972c0df42e02d707d862d44f97f357f4bf69d21
tree449ae7ea06b6f22e28dee002b7357019d8d14c36
parent9df7daa5ef912957c708382c0860e01d1cd3b4c8
[libc] Add null-terminator to the thread name obtained from the syscall.

This bug was caught by the aarch64 full build builder.

Differential Revision: https://reviews.llvm.org/D148844
libc/src/__support/threads/linux/thread.cpp