projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
512e1b2
)
fix MinGW
author
Nils Durner
<durner@gnunet.org>
Fri, 20 Nov 2009 20:22:51 +0000
(20:22 +0000)
committer
Nils Durner
<durner@gnunet.org>
Fri, 20 Nov 2009 20:22:51 +0000
(20:22 +0000)
src/util/test_strings.c
patch
|
blob
|
history
diff --git
a/src/util/test_strings.c
b/src/util/test_strings.c
index 107bb746c09479cd6b9d1725932cc2ca109820e3..0c7c56bcdc5654105ed99c03575c982663af3044 100644
(file)
--- a/
src/util/test_strings.c
+++ b/
src/util/test_strings.c
@@
-65,7
+65,13
@@
check ()
(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");