From d80df28d5f4814f93b8aa536a1064c77e3d659cc Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Fri, 23 Jun 2017 20:43:16 +0200 Subject: [PATCH] -fix 0-term --- src/credential/plugin_gnsrecord_credential.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/credential/plugin_gnsrecord_credential.c b/src/credential/plugin_gnsrecord_credential.c index 1011664cd..daecc1bd4 100644 --- a/src/credential/plugin_gnsrecord_credential.c +++ b/src/credential/plugin_gnsrecord_credential.c @@ -127,7 +127,7 @@ credential_value_to_string (void *cls, } case GNUNET_GNSRECORD_TYPE_POLICY: { - return GNUNET_strdup (data); + return GNUNET_strndup (data,data_size); } default: return NULL; -- 2.25.1