diff options
author | Nick Clifton <nickc@redhat.com> | 2022-09-01 14:51:50 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2022-09-01 14:51:50 +0100 |
commit | f4492fb683013d7de6f4788df6deb24fed8671b4 (patch) | |
tree | 968cfab21701dc4cc1c83e070dd4382261888cca /binutils/resrc.c | |
parent | 7b0d7ede79f548915641ac5916fbeb77fc9c44ff (diff) | |
download | fsf-binutils-gdb-f4492fb683013d7de6f4788df6deb24fed8671b4.zip fsf-binutils-gdb-f4492fb683013d7de6f4788df6deb24fed8671b4.tar.gz fsf-binutils-gdb-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/resrc.c')
-rw-r--r-- | binutils/resrc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |