aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_strings.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-08-30 21:23:32 +0000
committerChristian Grothoff <christian@grothoff.org>2010-08-30 21:23:32 +0000
commit4e3432d68e81ffb2d43d1ca8f713e5a6f97d4789 (patch)
treebeb92d48fb7f2fd60e3ce109b87984ff3e8ff9d2 /src/util/test_strings.c
parent0dcec46d04c452596436cadc3956f96a78fe1551 (diff)
downloadgnunet-4e3432d68e81ffb2d43d1ca8f713e5a6f97d4789.tar.gz
gnunet-4e3432d68e81ffb2d43d1ca8f713e5a6f97d4789.zip
snprintf
Diffstat (limited to 'src/util/test_strings.c')
-rw-r--r--src/util/test_strings.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/util/test_strings.c b/src/util/test_strings.c
index 5dc8e2887..fce40362c 100644
--- a/src/util/test_strings.c
+++ b/src/util/test_strings.c
@@ -65,13 +65,17 @@ check ()
65 (GNUNET_TIME_UNIT_MILLISECONDS, 65 (GNUNET_TIME_UNIT_MILLISECONDS,
66 7 * 60 * 60 * 1000)); 66 7 * 60 * 60 * 1000));
67 WANT (buf, b); 67 WANT (buf, b);
68 sprintf (buf, "%s%s", getenv ( 68 GNUNET_snprintf (buf,
69 sizeof (buf),
70 "%s%s",
71 getenv (
69#ifndef MINGW 72#ifndef MINGW
70 "HOME" 73 "HOME"
71#else 74#else
72 "USERPROFILE" 75 "USERPROFILE"
73#endif 76#endif
74) , DIR_SEPARATOR_STR); 77 ),
78 DIR_SEPARATOR_STR);
75 b = GNUNET_STRINGS_filename_expand ("~"); 79 b = GNUNET_STRINGS_filename_expand ("~");
76 WANT (buf, b); 80 WANT (buf, b);
77 GNUNET_STRINGS_buffer_fill (buf, sizeof (buf), 3, "a", "btx", "c"); 81 GNUNET_STRINGS_buffer_fill (buf, sizeof (buf), 3, "a", "btx", "c");