From b7daa03785d09510b3f36d4e6bbab37b005c3619 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 27 Jun 2012 10:22:13 +0000 Subject: [PATCH] -\'optimize\' --- src/util/common_allocation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, len = GNUNET_MIN (len, strlen (str)); res = GNUNET_xmalloc_ (len + 1, filename, linenumber); memcpy (res, str, len); - res[len] = '\0'; + /* res[len] = '\0'; 'malloc' zeros out anyway */ return res; } -- 2.25.1