aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_common.h')
-rw-r--r--src/include/gnunet_common.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h
index b8a667524..f4844821c 100644
--- a/src/include/gnunet_common.h
+++ b/src/include/gnunet_common.h
@@ -428,7 +428,7 @@ GNUNET_htonll (unsigned long long n);
428 * @param length of the string to duplicate 428 * @param length of the string to duplicate
429 * @return a partial copy of the string including zero-termination 429 * @return a partial copy of the string including zero-termination
430 */ 430 */
431#define GNUNET_strndup(a,b) GNUNET_xstrndup_(a,b,__FILE__,__LINE__) 431#define GNUNET_strndup(a,length) GNUNET_xstrndup_(a,length,__FILE__,__LINE__)
432 432
433/** 433/**
434 * Grow a well-typed (!) array. This is a convenience 434 * Grow a well-typed (!) array. This is a convenience
@@ -577,8 +577,9 @@ GNUNET_xstrdup_ (const char *str, const char *filename, int linenumber);
577 577
578/** 578/**
579 * Dup partially a string. Don't call GNUNET_xstrndup_ directly. Use the GNUNET_strndup macro. 579 * Dup partially a string. Don't call GNUNET_xstrndup_ directly. Use the GNUNET_strndup macro.
580 *
580 * @param str string to duplicate 581 * @param str string to duplicate
581 * @param len lenght of the string to duplicate 582 * @param len length of the string to duplicate
582 * @param filename where is this call being made (for debugging) 583 * @param filename where is this call being made (for debugging)
583 * @param linenumber line where this call is being made (for debugging) 584 * @param linenumber line where this call is being made (for debugging)
584 * @return the duplicated string 585 * @return the duplicated string