certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-cvs] certi/RTIA FederationManagement.cc


From: certi-cvs
Subject: [certi-cvs] certi/RTIA FederationManagement.cc
Date: Wed, 22 Oct 2008 14:24:34 +0000

CVSROOT:        /sources/certi
Module name:    certi
Changes by:     Mathé <jmm>    08/10/22 14:24:34

Modified files:
        RTIA           : FederationManagement.cc 

Log message:
        bug #24626 : For Win32 only : Tempory FED file saved within TMP / TEMP 
directory

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/RTIA/FederationManagement.cc?cvsroot=certi&r1=3.68&r2=3.69

Patches:
Index: FederationManagement.cc
===================================================================
RCS file: /sources/certi/certi/RTIA/FederationManagement.cc,v
retrieving revision 3.68
retrieving revision 3.69
diff -u -b -r3.68 -r3.69
--- FederationManagement.cc     23 Jun 2008 13:25:06 -0000      3.68
+++ FederationManagement.cc     22 Oct 2008 14:24:34 -0000      3.69
@@ -18,7 +18,7 @@
 // along with this program ; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 //
-// $Id: FederationManagement.cc,v 3.68 2008/06/23 13:25:06 erk Exp $
+// $Id: FederationManagement.cc,v 3.69 2008/10/22 14:24:34 jmm Exp $
 // ----------------------------------------------------------------------------
 
 #include <config.h>
@@ -310,10 +310,16 @@
             char pid_name[10];
             sprintf(pid_name,"%d_",getpid());
 
-            //filename = new char[6+strlen(pid_name)+strlen(Federation)+4+1] ;
-            filename += "_RTIA_";
-            filename += pid_name ;
-             filename += Federation ;
+            #ifdef _WIN32      //Write the file into 
+            char       *theDir; 
+            
+            theDir= getenv("TMP"); if (theDir == NULL) theDir= getenv("TEMP"); 
         
+            if (theDir) { filename+= theDir; filename+= "\\";}      
+            #endif
+            
+            filename+= "_RTIA_";
+            filename+= pid_name ;
+            filename+= Federation ;
             // Last file type : fed or xml ?
    
             string filename_RTIG = reponse->FEDid ;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]