aboutsummaryrefslogtreecommitdiff
path: root/src/util/common_allocation.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-27 10:22:13 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-27 10:22:13 +0000
commitb7daa03785d09510b3f36d4e6bbab37b005c3619 (patch)
tree854d48ebc49f0cd34be437a1dcdc9695947dcf93 /src/util/common_allocation.c
parent220fbc2196dab3972e5768be77798f7abac5caf1 (diff)
downloadgnunet-b7daa03785d09510b3f36d4e6bbab37b005c3619.tar.gz
gnunet-b7daa03785d09510b3f36d4e6bbab37b005c3619.zip
-\'optimize\'
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