aboutsummaryrefslogtreecommitdiff
path: root/binutils/dllwrap.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2022-09-01 14:51:50 +0100
committerNick Clifton <nickc@redhat.com>2022-09-01 14:51:50 +0100
commitf4492fb683013d7de6f4788df6deb24fed8671b4 (patch)
tree968cfab21701dc4cc1c83e070dd4382261888cca /binutils/dllwrap.c
parent7b0d7ede79f548915641ac5916fbeb77fc9c44ff (diff)
downloadbinutils-f4492fb683013d7de6f4788df6deb24fed8671b4.zip
binutils-f4492fb683013d7de6f4788df6deb24fed8671b4.tar.gz
binutils-f4492fb683013d7de6f4788df6deb24fed8671b4.tar.bz2
dllwrap, windres and dlltools use mktemp, which should be avoided
PR 29534 * dllwrap.c: Replace uses of choose_temp_base() with make_temp_file(). * dlltool.c: Likewise. * resrc.c: Likewise.
Diffstat (limited to 'binutils/dllwrap.c')
-rw-r--r--binutils/dllwrap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/binutils/dllwrap.c b/binutils/dllwrap.c
index 1be3cec..7c77701 100644
--- a/binutils/dllwrap.c
+++ b/binutils/dllwrap.c
@@ -351,7 +351,7 @@ run (const char *what, char *args)
int i;
const char **argv;
char *errmsg_fmt = NULL, *errmsg_arg = NULL;
- char *temp_base = choose_temp_base ();
+ char *temp_base = make_temp_file (NULL);
int in_quote;
char sep;
@@ -818,7 +818,7 @@ main (int argc, char **argv)
if (! def_file_seen)
{
- char *fileprefix = choose_temp_base ();
+ char *fileprefix = make_temp_file (NULL);
def_file_name = (char *) xmalloc (strlen (fileprefix) + 5);
sprintf (def_file_name, "%s.def",
@@ -1031,7 +1031,7 @@ Creating one, but that may not be what you want"));
if (! base_file_name)
{
- char *fileprefix = choose_temp_base ();
+ char *fileprefix = make_temp_file (NULL);
base_file_name = (char *) xmalloc (strlen (fileprefix) + 6);
sprintf (base_file_name, "%s.base",
(dontdeltemps) ? mybasename (fileprefix) : fileprefix);