[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r12770 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r12770 - gnunet/src/util |
Date: |
Mon, 30 Aug 2010 23:23:32 +0200 |
Author: grothoff
Date: 2010-08-30 23:23:32 +0200 (Mon, 30 Aug 2010)
New Revision: 12770
Modified:
gnunet/src/util/test_strings.c
Log:
snprintf
Modified: gnunet/src/util/test_strings.c
===================================================================
--- gnunet/src/util/test_strings.c 2010-08-30 21:21:50 UTC (rev 12769)
+++ gnunet/src/util/test_strings.c 2010-08-30 21:23:32 UTC (rev 12770)
@@ -65,13 +65,17 @@
(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");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r12770 - gnunet/src/util,
gnunet <=