fix error checking in pthread_getname_np
authorÉrico Nogueira <ericonr@disroot.org>
Sat, 10 Jul 2021 03:24:59 +0000 (00:24 -0300)
committerRich Felker <dalias@aerifal.cx>
Fri, 6 Aug 2021 15:26:15 +0000 (11:26 -0400)
len is unsigned and can never be smaller than 0. though unlikely, an
error in read() would have lead to an out of bounds write to name.

Reported-by: Michael Forney <mforney@mforney.org>

No differences found