Subject: Re: bus error in mktemp
To: Jon Buller <jonb@metronet.com>
From: Dave Mason <dmason@scs.Ryerson.CA>
List: port-pc532
Date: 10/25/1995 12:51:30
Jon Buller writes:
> Phil Budne wrote:
> > Could the buffer be "const"?
> 
> FILE * intermedf = (FILE *) NULL;
> char *interfn = 
> #ifdef DOSTMP
>  "frtXXXXXX";
> #else
>  "/tmp/frankasm.XXXXXX";
> #endif
> 
> It used to be /usr/tmp/fr..., but that didn't work too well with no tmp
> directory on the /usr partition 8-)

Change it to:

char interfn[] = 
 #ifdef DOSTMP
  "frtXXXXXX";
 #else
  "/tmp/frankasm.XXXXXX";
 #endif

or compile with the gcc flag to put string constants in data rather
than text segments.

../Dave