From 48371dc6693c798eced86734fcc202e68198a98f Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Wed, 8 Mar 2023 18:59:10 -0600 Subject: [PATCH] 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. --- stdio.asm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stdio.asm b/stdio.asm index 8befdf1..5ad0ac9 100644 --- a/stdio.asm +++ b/stdio.asm @@ -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