aboutsummaryrefslogtreecommitdiff
path: root/src/util/strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/strings.c')
-rw-r--r--src/util/strings.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/util/strings.c b/src/util/strings.c
index a95981690..e2ca69e10 100644
--- a/src/util/strings.c
+++ b/src/util/strings.c
@@ -96,8 +96,8 @@ GNUNET_STRINGS_buffer_fill (char *buffer, size_t size, unsigned int count, ...)
96 * in the buffer, or 0 on error. 96 * in the buffer, or 0 on error.
97 */ 97 */
98unsigned int 98unsigned int
99GNUNET_STRINGS_buffer_tokenize (const char *buffer, 99GNUNET_STRINGS_buffer_tokenize (const char *buffer, size_t size,
100 size_t size, unsigned int count, ...) 100 unsigned int count, ...)
101{ 101{
102 unsigned int start; 102 unsigned int start;
103 unsigned int needed; 103 unsigned int needed;
@@ -314,8 +314,7 @@ GNUNET_STRINGS_filename_expand (const char *fil)
314 } 314 }
315 n = strlen (fm) + 1 + strlen (fil_ptr) + 1; 315 n = strlen (fm) + 1 + strlen (fil_ptr) + 1;
316 buffer = GNUNET_malloc (n); 316 buffer = GNUNET_malloc (n);
317 GNUNET_snprintf (buffer, n, "%s%s%s", 317 GNUNET_snprintf (buffer, n, "%s%s%s", fm,
318 fm,
319 (fm[strlen (fm) - 1] == 318 (fm[strlen (fm) - 1] ==
320 DIR_SEPARATOR) ? "" : DIR_SEPARATOR_STR, fil_ptr); 319 DIR_SEPARATOR) ? "" : DIR_SEPARATOR_STR, fil_ptr);
321 GNUNET_free (fm); 320 GNUNET_free (fm);