[libc] Another fix to add a null-terminator to the pthread name.
authorSiva Chandra Reddy <sivachandra@google.com>
Fri, 21 Apr 2023 03:29:36 +0000 (03:29 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Fri, 21 Apr 2023 03:34:34 +0000 (03:34 +0000)
commit596d87c4cce17f4842e852a0a4f57bcc7e8ab02b
treefe9294dd297823d1480965f8edc41ddbc07867f5
parent7d98590b3a23645584779a1036d319082f3be7c9
[libc] Another fix to add a null-terminator to the pthread name.

This fix is similar to the one done in https://reviews.llvm.org/D148844.
This miss was caught by the risv64 builder.

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