From b89a079f8021ee89d55939cdebbb5a144d7fe01f Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Fri, 14 Sep 2012 15:09:41 +0000 Subject: [PATCH] -fix --- src/namestore/namestore_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/namestore/namestore_common.c b/src/namestore/namestore_common.c index a93ca0598..74f2d063b 100644 --- a/src/namestore/namestore_common.c +++ b/src/namestore/namestore_common.c @@ -503,11 +503,11 @@ GNUNET_NAMESTORE_string_to_value (uint32_t type, return GNUNET_OK; case GNUNET_DNSPARSER_TYPE_NS: *data = GNUNET_strdup (s); - *data_size = strlen (s); + *data_size = strlen (s) + 1; return GNUNET_OK; case GNUNET_DNSPARSER_TYPE_CNAME: *data = GNUNET_strdup (s); - *data_size = strlen (s); + *data_size = strlen (s) + 1; return GNUNET_OK; case GNUNET_DNSPARSER_TYPE_SOA: -- 2.25.1