Subject: Re: mkstemp() core dump
To: None <email@example.com>
From: Jaromir Dolecek <firstname.lastname@example.org>
Date: 09/02/1999 17:06:42
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 ?