summaryrefslogtreecommitdiff
path: root/binutils/bucomm.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-11-14 11:56:41 +0000
committerNick Clifton <nickc@redhat.com>2001-11-14 11:56:41 +0000
commitcba6c0889a3b9164a788d38e9eac635d48c7f968 (patch)
treeb7160b9fb3ae2a7de445525e0c9ba6556b13e89f /binutils/bucomm.c
parent58e82cfea7f31f28ab17ec8fea49c9073fd967a8 (diff)
downloadbinutils-redhat-cba6c0889a3b9164a788d38e9eac635d48c7f968.tar.gz
Replace use of mkstemp with mkstemps, provided by libiberty.
Diffstat (limited to 'binutils/bucomm.c')
-rw-r--r--binutils/bucomm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/binutils/bucomm.c b/binutils/bucomm.c
index 8cccd6b3de..68b191b721 100644
--- a/binutils/bucomm.c
+++ b/binutils/bucomm.c
@@ -35,6 +35,9 @@
typedef long time_t;
#endif
#endif
+
+/* Ought to be defined in libiberty.h... */
+extern int mkstemps PARAMS ((char *, int));
/* Error reporting */
@@ -233,14 +236,14 @@ make_tempname (filename)
#endif
strcat (tmpname, "/");
strcat (tmpname, template);
- close (mkstemp (tmpname));
+ close (mkstemps (tmpname, 0));
*slash = c;
}
else
{
tmpname = xmalloc (sizeof (template));
strcpy (tmpname, template);
- close (mkstemp (tmpname));
+ close (mkstemps (tmpname, 0));
}
return tmpname;
}