summaryrefslogtreecommitdiff
path: root/src/credential
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2017-06-23 20:43:16 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2017-06-23 20:43:16 +0200
commitd80df28d5f4814f93b8aa536a1064c77e3d659cc (patch)
tree69a3083a57819159b7eec6a5f7359ab78fce7dd2 /src/credential
parent2d81d6d8217b9aa08139bd66d14c597705568920 (diff)
-fix 0-term
Diffstat (limited to 'src/credential')
-rw-r--r--src/credential/plugin_gnsrecord_credential.c2
1 files changed, 1 insertions, 1 deletions
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;