gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r5526 - GNUnet/src/applications/dstore


From: gnunet
Subject: [GNUnet-SVN] r5526 - GNUnet/src/applications/dstore
Date: Sun, 19 Aug 2007 15:40:25 -0600 (MDT)

Author: durner
Date: 2007-08-19 15:40:24 -0600 (Sun, 19 Aug 2007)
New Revision: 5526

Modified:
   GNUnet/src/applications/dstore/dstore.c
Log:
fix MinGW

Modified: GNUnet/src/applications/dstore/dstore.c
===================================================================
--- GNUnet/src/applications/dstore/dstore.c     2007-08-19 21:18:06 UTC (rev 
5525)
+++ GNUnet/src/applications/dstore/dstore.c     2007-08-19 21:40:24 UTC (rev 
5526)
@@ -117,13 +117,21 @@
 {
   int fd;
   sqlite3 *dbh;
-
+  char *tmpl;
+  
   if (fn != NULL)
     {
       UNLINK (fn);
       FREE (fn);
     }
-  fn = STRDUP ("/tmp/dstoreXXXXXX");
+  tmpl = "/tmp/dstoreXXXXXX";
+
+#ifdef MINGW
+  fn = (char *) MALLOC(MAX_PATH + 1);
+  plibc_conv_to_win_path(tmpl, fn);
+#else
+  fn = STRDUP (tmpl);
+#endif
   fd = mkstemp (fn);
   if (fd == -1)
     {





reply via email to

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