aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/emultempl/spuelf.em2
2 files changed, 5 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 6eb5715..74de9ff 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2010-11-05 Pierre Muller  <muller@ics.u-strasbg.fr>
+
+ * emultempl/spuelf.em (new_tmp_file): Fix wrong first parameter.
+
2010-11-05 Tristan Gingold <gingold@adacore.com>
* po/ld.pot: Regenerate
diff --git a/ld/emultempl/spuelf.em b/ld/emultempl/spuelf.em
index 2ea760a..ff6785ca 100644
--- a/ld/emultempl/spuelf.em
+++ b/ld/emultempl/spuelf.em
@@ -355,7 +355,7 @@ new_tmp_file (char **fname)
*fname = mktemp (*fname);
if (*fname == NULL)
return -1;
- fd = open (fname, O_RDWR | O_CREAT | O_EXCL, 0600);
+ fd = open (*fname, O_RDWR | O_CREAT | O_EXCL, 0600);
#endif
return fd;
}