Make tmpnam() return the pointer passed to it, if non-null.

This is what the standards call for. It was previously always returning a pointer to its internal buffer.
This commit is contained in:
Stephen Heumann 2020-01-31 12:45:02 -06:00
parent 27a32d82bd
commit c439f2e3ea
1 changed files with 2 additions and 1 deletions

View File

@ -3067,9 +3067,10 @@ lb4 long M append the two strings
ph4 #cname move the string
ph4 buf
jsl strcpy
bra lb6
lb5 lla buf,cname return the string pointer
plb
lb6 plb
creturn 4:buf
pr dc i'2' parameter block for OSGet_Prefix