gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r9595 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r9595 - gnunet/src/util
Date: Fri, 20 Nov 2009 13:22:51 -0700

Author: durner
Date: 2009-11-20 13:22:51 -0700 (Fri, 20 Nov 2009)
New Revision: 9595

Modified:
   gnunet/src/util/test_strings.c
Log:
fix MinGW

Modified: gnunet/src/util/test_strings.c
===================================================================
--- gnunet/src/util/test_strings.c      2009-11-20 19:49:16 UTC (rev 9594)
+++ gnunet/src/util/test_strings.c      2009-11-20 20:22:51 UTC (rev 9595)
@@ -65,7 +65,13 @@
                                             (GNUNET_TIME_UNIT_MILLISECONDS,
                                              7 * 60 * 60 * 1000));
   WANT (buf, b);
-  sprintf (buf, "%s%s", getenv ("HOME"), DIR_SEPARATOR_STR);
+  sprintf (buf, "%s%s", getenv (
+#ifndef MINGW
+      "HOME"
+#else
+      "USERPROFILE"
+#endif
+)      , DIR_SEPARATOR_STR);
   b = GNUNET_STRINGS_filename_expand ("~");
   WANT (buf, b);
   GNUNET_STRINGS_buffer_fill (buf, sizeof (buf), 3, "a", "btx", "c");





reply via email to

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