aboutsummaryrefslogtreecommitdiff
path: root/src/util/common_allocation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/common_allocation.c')
-rw-r--r--src/util/common_allocation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/common_allocation.c b/src/util/common_allocation.c
index 801eeeebc..c86185685 100644
--- a/src/util/common_allocation.c
+++ b/src/util/common_allocation.c
@@ -251,7 +251,7 @@ GNUNET_xstrndup_ (const char *str, size_t len, const char *filename,
251 len = GNUNET_MIN (len, strlen (str)); 251 len = GNUNET_MIN (len, strlen (str));
252 res = GNUNET_xmalloc_ (len + 1, filename, linenumber); 252 res = GNUNET_xmalloc_ (len + 1, filename, linenumber);
253 memcpy (res, str, len); 253 memcpy (res, str, len);
254 res[len] = '\0'; 254 /* res[len] = '\0'; 'malloc' zeros out anyway */
255 return res; 255 return res;
256} 256}
257 257