[EGCS] RE: tmpnam() core dumping

Marc Lehmann pcg@goof.com
Fri Dec 12 14:32:00 GMT 1997


> 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                        |
                                                          |



More information about the Gcc mailing list