aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_strings_to_data.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/test_strings_to_data.c')
-rw-r--r--src/util/test_strings_to_data.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/test_strings_to_data.c b/src/util/test_strings_to_data.c
index 125101e55..a0521cf70 100644
--- a/src/util/test_strings_to_data.c
+++ b/src/util/test_strings_to_data.c
@@ -34,7 +34,7 @@ main (int argc, char *argv[])
34 char dst[128]; 34 char dst[128];
35 unsigned int i; 35 unsigned int i;
36 int ret = 0; 36 int ret = 0;
37 37
38 GNUNET_log_setup ("util", "DEBUG", NULL); 38 GNUNET_log_setup ("util", "DEBUG", NULL);
39 for (i=0;i<sizeof(src);i++) 39 for (i=0;i<sizeof(src);i++)
40 { 40 {
@@ -44,7 +44,7 @@ main (int argc, char *argv[])
44 end = GNUNET_STRINGS_data_to_string (&src, i, buf, sizeof (buf)); 44 end = GNUNET_STRINGS_data_to_string (&src, i, buf, sizeof (buf));
45 GNUNET_assert (NULL != end); 45 GNUNET_assert (NULL != end);
46 end[0] = '\0'; 46 end[0] = '\0';
47 if (GNUNET_OK != 47 if (GNUNET_OK !=
48 GNUNET_STRINGS_string_to_data (buf, strlen (buf), dst, i)) 48 GNUNET_STRINGS_string_to_data (buf, strlen (buf), dst, i))
49 { 49 {
50 fprintf (stderr, "%u failed decode (%u bytes)\n", i, (unsigned int) strlen (buf)); 50 fprintf (stderr, "%u failed decode (%u bytes)\n", i, (unsigned int) strlen (buf));