This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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;
 }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]