Avoid calls to insecure choose_temp_base, ok fgsch@

This commit is contained in:
drahn 2002-05-06 20:51:19 +00:00
parent 2102f9abb0
commit 67e8222934

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-binutils_dlltool_c,v 1.1 2002/05/06 20:51:19 drahn Exp $
--- binutils/dlltool.c.orig Mon May 6 15:28:21 2002
+++ binutils/dlltool.c Mon May 6 15:28:54 2002
@@ -1125,7 +1125,11 @@ run (what, args)
int i;
const char **argv;
char *errmsg_fmt, *errmsg_arg;
+#if defined(__MSDOS__) && !defined(__GO32__)
char *temp_base = choose_temp_base ();
+#else
+ char *temp_base = NULL;
+#endif
inform ("run: %s %s", what, args);