Re: [patch] use mkstemp instead of the deprecated tempname



On Fri, 2006-12-08 at 15:51 +0100, Paolo Borelli wrote:
> Compiling nautilus I noticed:
> 
> nautilus-application.o: In function `save_session_to_file':
> /home/paolo/cvs/gnome2/nautilus/src/nautilus-application.c:1454:
> warning: the use of `tempnam' is dangerous, better use `mkstemp'
> 
> the attached patch switches the code to use g_mkstemp

Looks good. Please commit.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a short-sighted soccer-playing dwarf from a doomed world. She's a 
warm-hearted blonde journalist looking for love in all the wrong places. They 
fight crime! 




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