mirror of
https://github.com/byteworksinc/ORCALib.git
synced 2025-03-18 03:29:25 +00:00
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:
parent
b03e462125
commit
48371dc669
@ -3210,9 +3210,8 @@ pr dc i'2' parameter block for OSGet_Prefix
|
||||
dc i'3'
|
||||
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
|
||||
GS_OSname dc i'8' used for OSGet_File_Info
|
||||
syscxxxx dc c'SYSC0000',i1'0' for creating unique names
|
||||
|
||||
GIParm dc i'2' used to see if the file exists
|
||||
|
Loading…
x
Reference in New Issue
Block a user