aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2010-11-05 17:20:17 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2010-11-05 17:20:17 +0000
commita38ce0d06c7bec7359ac34c0611c1f2657225679 (patch)
tree34ad7f425fb18841c26637c67f1956d1179cf72d /ld/emultempl
parentb521dba8314f58f8dd0234297d8539628f9e5e7a (diff)
downloadgdb-a38ce0d06c7bec7359ac34c0611c1f2657225679.zip
gdb-a38ce0d06c7bec7359ac34c0611c1f2657225679.tar.gz
gdb-a38ce0d06c7bec7359ac34c0611c1f2657225679.tar.bz2
ld/
2010-11-05  Pierre Muller  <muller@ics.u-strasbg.fr> * emultempl/spuelf.em (new_tmp_file): Fix wrong first parameter.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/spuelf.em2
1 files changed, 1 insertions, 1 deletions
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;
}