-fix 0-term
authorSchanzenbach, Martin <mschanzenbach@posteo.de>
Fri, 23 Jun 2017 18:43:16 +0000 (20:43 +0200)
committerSchanzenbach, Martin <mschanzenbach@posteo.de>
Fri, 23 Jun 2017 18:43:16 +0000 (20:43 +0200)
src/credential/plugin_gnsrecord_credential.c

index 1011664cda262adb3724e70d70de55591082daae..daecc1bd4aefcf6dd2e39a3f1f760dec857c0f3c 100644 (file)
@@ -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;