aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2016-05-29 13:52:19 -0400
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2016-06-01 06:24:05 +0000
commitacc018b8d1db3489d3f63f8f096c593243191469 (patch)
treee7adc7f2ffe56a94550c7def88de4cc8f50d9ac8 /ui/gtk
parentb2845a6ac885d49aa1ea5d3865cd377d812eb4c7 (diff)
Allow create_tempfile to support a suffix.
Ping-Bug: 10203 Change-Id: Ifa24870d711449b87e9839dd46af614e4aa28fde Reviewed-on: https://code.wireshark.org/review/15608 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
Diffstat (limited to 'ui/gtk')
-rw-r--r--ui/gtk/follow_stream.c2
-rw-r--r--ui/gtk/iax2_analysis.c4
-rw-r--r--ui/gtk/print_dlg.c2
-rw-r--r--ui/gtk/rtp_analysis.c4
4 files changed, 6 insertions, 6 deletions
diff --git a/ui/gtk/follow_stream.c b/ui/gtk/follow_stream.c
index 37482e2e02..d68f15ebb6 100644
--- a/ui/gtk/follow_stream.c
+++ b/ui/gtk/follow_stream.c
@@ -601,7 +601,7 @@ follow_print_stream(GtkWidget * w _U_, gpointer data)
/* Don't use tmpnam() or such, as this will fail under some ACL */
/* circumstances: http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=358 */
/* Also: tmpnam is "insecure" and should not be used. */
- tmp_fd = create_tempfile(&tmp_namebuf, "wshprint");
+ tmp_fd = create_tempfile(&tmp_namebuf, "wshprint", NULL);
if(tmp_fd == -1) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
"Couldn't create temporary file for printing:\n%s", tmp_namebuf);
diff --git a/ui/gtk/iax2_analysis.c b/ui/gtk/iax2_analysis.c
index d0eceb4a43..604f721ba3 100644
--- a/ui/gtk/iax2_analysis.c
+++ b/ui/gtk/iax2_analysis.c
@@ -3443,7 +3443,7 @@ iax2_analysis(
/* file names for storing sound data */
- fd = create_tempfile(&tempname, "wireshark_iax2_f");
+ fd = create_tempfile(&tempname, "wireshark_iax2_f", NULL);
if (fd < 0) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
"Can't create temporary file for IAX2 analysis:\n%s.",
@@ -3453,7 +3453,7 @@ iax2_analysis(
}
user_data->f_tempname = g_strdup(tempname);
ws_close(fd);
- fd = create_tempfile(&tempname, "wireshark_iax2_r");
+ fd = create_tempfile(&tempname, "wireshark_iax2_r", NULL);
if (fd < 0) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
"Can't create temporary file for IAX2 analysis:\n%s.",
diff --git a/ui/gtk/print_dlg.c b/ui/gtk/print_dlg.c
index 262e953695..ee4cddd111 100644
--- a/ui/gtk/print_dlg.c
+++ b/ui/gtk/print_dlg.c
@@ -992,7 +992,7 @@ print_ok_cb(GtkWidget *ok_bt, gpointer parent_w)
/* Don't use tmpnam() or such, as this will fail under some ACL */
/* circumstances: http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=358 */
/* Also: tmpnam is "insecure" and should not be used. */
- tmp_fd = create_tempfile(&tmp_namebuf, "wshprint");
+ tmp_fd = create_tempfile(&tmp_namebuf, "wshprint", NULL);
if(tmp_fd == -1) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
"Couldn't create a temporary file for printing:\n%s", tmp_namebuf);
diff --git a/ui/gtk/rtp_analysis.c b/ui/gtk/rtp_analysis.c
index 9c1f6f685f..daaa6d38e8 100644
--- a/ui/gtk/rtp_analysis.c
+++ b/ui/gtk/rtp_analysis.c
@@ -3769,7 +3769,7 @@ rtp_analysis(address *src_fwd,
/* file names for storing sound data */
- fd = create_tempfile(&tempname, "wireshark_rtp_f");
+ fd = create_tempfile(&tempname, "wireshark_rtp_f", NULL);
if (fd < 0) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
"Can't create temporary file for RTP analysis:\n%s.",
@@ -3779,7 +3779,7 @@ rtp_analysis(address *src_fwd,
}
user_data->f_tempname = g_strdup(tempname);
ws_close(fd);
- fd = create_tempfile(&tempname, "wireshark_rtp_r");
+ fd = create_tempfile(&tempname, "wireshark_rtp_r", NULL);
if (fd < 0) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
"Can't create temporary file for RTP analysis:\n%s.",