tmpnam: allow slightly longer temp directory name

ORCA/C's tmpnam() implementation is designed to use prefix 3 if it is defined and the path is sufficiently short. I think it was intended to allow up to a 15-character disk name to be specified, but it used a GS/OS result buffer size of 16, which only leaves 12 characters for the path, including initial and terminal : characters. As such, only up to a 10-character disk name could be used. This patch increases the specified buffer size to 21, allowing for a 17-character path that can encompass a 15-character disk name.
This commit is contained in:
Stephen Heumann 2023-03-08 18:59:10 -06:00
parent b03e462125
commit 48371dc669
1 changed files with 1 additions and 2 deletions

View File

@ -3210,9 +3210,8 @@ pr dc i'2' parameter block for OSGet_Prefix
dc i'3' dc i'3'
dc a4'name' dc a4'name'
name dc i'16,0' GS/OS name buffer name dc i'17+4,0' GS/OS name buffer
cname ds 26 part of name; also C buffer cname ds 26 part of name; also C buffer
GS_OSname dc i'8' used for OSGet_File_Info
syscxxxx dc c'SYSC0000',i1'0' for creating unique names syscxxxx dc c'SYSC0000',i1'0' for creating unique names
GIParm dc i'2' used to see if the file exists GIParm dc i'2' used to see if the file exists