diff options
author | Michael Mann <mmann78@netscape.net> | 2016-05-29 13:52:19 -0400 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2016-06-01 06:24:05 +0000 |
commit | acc018b8d1db3489d3f63f8f096c593243191469 (patch) | |
tree | e7adc7f2ffe56a94550c7def88de4cc8f50d9ac8 /ui/gtk/follow_stream.c | |
parent | b2845a6ac885d49aa1ea5d3865cd377d812eb4c7 (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/follow_stream.c')
-rw-r--r-- | ui/gtk/follow_stream.c | 2 |
1 files changed, 1 insertions, 1 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); |