diff options
author | Jörg Mayer <jmayer@loplof.de> | 2004-06-25 07:04:03 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2004-06-25 07:04:03 +0000 |
commit | 0195deceaedfe8d65bc2c7d0817cfc11d421f2a0 (patch) | |
tree | 5243f1ebe01561513185f4f90fda6e6bf2b4a1d5 /gtk/print_dlg.c | |
parent | 021f72021e8de04728950de107fa94c750dfbc9b (diff) |
tmpnam() really should not be used for security reasons.
Replace it where used and update README.developer accordingly.
svn path=/trunk/; revision=11235
Diffstat (limited to 'gtk/print_dlg.c')
-rw-r--r-- | gtk/print_dlg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/print_dlg.c b/gtk/print_dlg.c index 2de0c4ac69..933165e8c2 100644 --- a/gtk/print_dlg.c +++ b/gtk/print_dlg.c @@ -1,7 +1,7 @@ /* print_dlg.c * Dialog boxes for printing * - * $Id: print_dlg.c,v 1.78 2004/05/27 21:52:07 ulfl Exp $ + * $Id: print_dlg.c,v 1.79 2004/06/25 07:04:02 jmayer Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -768,7 +768,7 @@ print_ok_cb(GtkWidget *ok_bt, gpointer parent_w) win_printer = TRUE; /*XXX should use temp file stuff in util routines */ g_free(args->file); - args->file = g_strdup(tmpnam(NULL)); + args->file = g_strdup(mkstemp("etherealXXXXXX")); args->to_file = TRUE; #else g_free(args->cmd); |