summaryrefslogtreecommitdiff
path: root/binutils/bucomm.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-11-12 16:17:39 +0000
committerNick Clifton <nickc@redhat.com>2001-11-12 16:17:39 +0000
commit739fe2e2b12546a7c33516eeb62e33442aaab94a (patch)
tree3322d2815b25a919046e62578ea01cda75cb890f /binutils/bucomm.c
parent0bd8ab31c3a02901aa52d3245ce102135bef6645 (diff)
downloadbinutils-redhat-739fe2e2b12546a7c33516eeb62e33442aaab94a.tar.gz
Use mkstemp in place of mktemp.
Diffstat (limited to 'binutils/bucomm.c')
-rw-r--r--binutils/bucomm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/bucomm.c b/binutils/bucomm.c
index aa3080fa75..8cccd6b3de 100644
--- a/binutils/bucomm.c
+++ b/binutils/bucomm.c
@@ -233,14 +233,14 @@ make_tempname (filename)
#endif
strcat (tmpname, "/");
strcat (tmpname, template);
- mktemp (tmpname);
+ close (mkstemp (tmpname));
*slash = c;
}
else
{
tmpname = xmalloc (sizeof (template));
strcpy (tmpname, template);
- mktemp (tmpname);
+ close (mkstemp (tmpname));
}
return tmpname;
}