This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [EGCS] RE: tmpnam() core dumping
- To: egcs at cygnus dot com
- Subject: Re: [EGCS] RE: tmpnam() core dumping
- From: Marc Lehmann <pcg at goof dot com>
- Date: Fri, 12 Dec 1997 23:05:47 +0100
- References: <01BD06E5.D34DA340@bill.icdata.com>
- Reply-To: egcs at cygnus dot com
> Yes, using -fwritable-strings fixes the problem.
>
> I wonder why these functions want to modify the string that is passed to them :-)?
because it's documented that way... many functions like "working space",
which makes them thread safe.
-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / pcg@goof.com |e|
-=====/_/_//_/\_,_/ /_/\_\ --+
The choice of a GNU generation |
|