From: Schanzenbach, Martin Date: Fri, 23 Jun 2017 18:43:16 +0000 (+0200) Subject: -fix 0-term X-Git-Tag: gnunet-0.11.0rc0~24^2~82 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d80df28d5f4814f93b8aa536a1064c77e3d659cc;p=oweals%2Fgnunet.git -fix 0-term --- 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;