From 739fe2e2b12546a7c33516eeb62e33442aaab94a Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 12 Nov 2001 16:17:39 +0000 Subject: Use mkstemp in place of mktemp. --- binutils/bucomm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'binutils/bucomm.c') 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; } -- cgit v1.2.1