aboutsummaryrefslogtreecommitdiff
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
commit7559e86e56cadb67d9709eba814ba3051453a2be (patch)
tree2dce441b2b8d265797a0eafa24827058dd9a50ba /binutils/bucomm.c
parentf11b70270240755581966522c547458672940002 (diff)
downloadgdb-7559e86e56cadb67d9709eba814ba3051453a2be.zip
gdb-7559e86e56cadb67d9709eba814ba3051453a2be.tar.gz
gdb-7559e86e56cadb67d9709eba814ba3051453a2be.tar.bz2
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 aa3080f..8cccd6b 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;
}