cuserid: support invocation with a null pointer argument
authorSören Tempel <soeren+git@soeren-tempel.net>
Wed, 29 Jan 2020 11:20:07 +0000 (12:20 +0100)
committerRich Felker <dalias@aerifal.cx>
Sat, 13 Feb 2021 18:40:22 +0000 (13:40 -0500)
commitef137da6428c342baabd3bcf9b5e91f75acefa64
treea842757ed096938924aff74be9eaf50fcbc2ac2d
parente5d2823631bbfebacf48e1a34ed28f28d7cb2570
cuserid: support invocation with a null pointer argument

this function was removed from the standard in 2001 but appeared in
SUSv2 with an obligation to support calls with a null pointer
argument, using a static buffer.
src/legacy/cuserid.c