Subject: Re: mkstemp() core dump
To: None <>
From: Patrick Welche <>
List: current-users
Date: 09/02/1999 16:20:22
Jaromir Dolecek wrote:
> Patrick Welche wrote:
> > Fair enough, but in my case path is "/tmp/dico.XXXX" so *(trv-1) really
> > is 'X'. I also tried changing for() to while() so that trv really must
> > point at the NUL at the end of path. I had also assumed that path would
> > be checked in mkstemp which calls gettemp, but no, you're right, sending
> > an empty path should break.
> What about the xtra string - can't it be NULL under
> some circumstances ?

        static char xtra[2] = "aa";

so not really...