--- pico/osdep/unix 2001/04/17 07:56:29 1.1 +++ pico/osdep/unix 2001/04/17 08:05:18 1.2 @@ -3355,6 +3355,12 @@ { unsigned pid; char *chp; + char *prefix; + char template[256]; + + prefix = getenv("PICO_TMP_PREFIX"); + snprintf(template, sizeof(template), "%s%s", + prefix ? prefix : "", "#picoXXXXX#"); if(!file[0]){ long gmode_save = gmode; @@ -3362,7 +3368,7 @@ if(gmode&MDCURDIR) gmode &= ~MDCURDIR; /* so fixpath will use home dir */ - strcpy(file, "#picoXXXXX#"); + strcpy(file, template); fixpath(file, NLINE); gmode = gmode_save; } @@ -3374,7 +3380,7 @@ file[l] = '\0'; } - strcpy(file + l, "#picoXXXXX#"); + strcpy(file + l, template); } pid = (unsigned)getpid();