This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Patch to correct bucomm.c mktemp usage
- From: "J. Grant" <jg-lists at jguk dot org>
- To: binutils <binutils at sources dot redhat dot com>
- Date: Fri, 14 Mar 2003 02:26:57 +0000
- Subject: Patch to correct bucomm.c mktemp usage
Hello,
Use of mktemp here generates a statement when compiling, this patch
corrects the issue. (unless mktemp() is required instead of mkstemp()
for a reason I am unaware).
2003-03-14 J. Grant <jg-binutils at jguk dot org>
* bucomm.c: Change mktemp to mkstemp.
Please include my email address in any replies.
Regards
JG
--- bucomm.c.orig 2002-10-28 16:01:19.000000000 +0000
+++ bucomm.c 2003-03-12 12:52:16.000000000 +0000
@@ -235,14 +235,14 @@
#endif
strcat (tmpname, "/");
strcat (tmpname, template);
- mktemp (tmpname);
+ mkstemp (tmpname);
*slash = c;
}
else
{
tmpname = xmalloc (sizeof (template));
strcpy (tmpname, template);
- mktemp (tmpname);
+ mkstemp (tmpname);
}
return tmpname;
}