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:
0dcec46
)
snprintf
author
Christian Grothoff
<christian@grothoff.org>
Mon, 30 Aug 2010 21:23:32 +0000
(21:23 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Mon, 30 Aug 2010 21:23:32 +0000
(21:23 +0000)
src/util/test_strings.c
patch
|
blob
|
history
diff --git
a/src/util/test_strings.c
b/src/util/test_strings.c
index 5dc8e288714f30df6874ce221cbd43ce86c648b5..fce40362c3c3bd08905d4526703e7e0b24c2d2d8 100644
(file)
--- a/
src/util/test_strings.c
+++ b/
src/util/test_strings.c
@@
-65,13
+65,17
@@
check ()
(GNUNET_TIME_UNIT_MILLISECONDS,
7 * 60 * 60 * 1000));
WANT (buf, b);
- sprintf (buf, "%s%s", getenv (
+ GNUNET_snprintf (buf,
+ sizeof (buf),
+ "%s%s",
+ getenv (
#ifndef MINGW
- "HOME"
+
"HOME"
#else
- "USERPROFILE"
+
"USERPROFILE"
#endif
-) , DIR_SEPARATOR_STR);
+ ),
+ DIR_SEPARATOR_STR);
b = GNUNET_STRINGS_filename_expand ("~");
WANT (buf, b);
GNUNET_STRINGS_buffer_fill (buf, sizeof (buf), 3, "a", "btx", "c");