Subject: Re: mktemp core dumps To: Peter Simons <simons@petium.rhein.de> From: Paul Kranenburg <pk@cs.few.eur.nl> List: netbsd-help Date: 12/28/1996 16:25:30
> | mktemp("/tmp/temp.XXXX");
You are passing a read-only constant, where mktemp() expects to able
to modify the trailing XXXXs in place to return the result.
char buf[N];
strcpy(buf, "template");
mktemp(buf);
should work better