[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: g77



> Is there something wrong with g77?  For a simple program I get some strange
> warnings for example:
> 
> MushMouth:jackson {113} cat hw1.f
>         Program test
>         End
> MushMouth:jackson {114} g77 hw1.f
> endfile.o: warning: tmpnam() possibly used unsafely; consider using mkstemp()
> open.o: warning: tmpnam() possibly used unsafely; consider using mkstemp()
> 
> The other simple programs I have compiled have run (just a small "Hello World")
> fine.  I was going to use g77 to do a homework assignment, but before I
> spend all my time debugging code, I want to make sure that the bad
> results I get, if any, are my fault.
> 
> 
> Aaron Jackson		jackson@msrce.howard.edu
> 

Consider using mkstemp()  :-)

There are a wide variety of security problems involved with tmpnam().

DV
-- 
PGP public key:  finger djv@bedford.net

       --== There are Greeks in that horse! I can hear them! ==--