From f4492fb683013d7de6f4788df6deb24fed8671b4 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 1 Sep 2022 14:51:50 +0100 Subject: 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. --- binutils/resrc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'binutils/resrc.c') diff --git a/binutils/resrc.c b/binutils/resrc.c index fff77f4..2cf168e 100644 --- a/binutils/resrc.c +++ b/binutils/resrc.c @@ -202,7 +202,7 @@ run_cmd (char *cmd, const char *redir) 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; int redir_handle = -1; @@ -316,7 +316,7 @@ open_input_stream (char *cmd) { char *fileprefix; - fileprefix = choose_temp_base (); + fileprefix = make_temp_file (NULL); cpp_temp_file = (char *) xmalloc (strlen (fileprefix) + 5); sprintf (cpp_temp_file, "%s.irc", fileprefix); free (fileprefix); -- cgit v1.1