From: Schanzenbach, Martin Date: Sat, 5 Oct 2019 20:45:42 +0000 (+0200) Subject: nick must be 0-terminated else resolver will discard/break X-Git-Tag: v0.11.7~87 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c2e682c75378b000ad75c91342b0d459edfb2720;p=oweals%2Fgnunet.git nick must be 0-terminated else resolver will discard/break --- diff --git a/src/gns/plugin_gnsrecord_gns.c b/src/gns/plugin_gnsrecord_gns.c index e0bc4fb0c..3ea282fdf 100644 --- a/src/gns/plugin_gnsrecord_gns.c +++ b/src/gns/plugin_gnsrecord_gns.c @@ -175,7 +175,7 @@ gns_string_to_value (void *cls, case GNUNET_GNSRECORD_TYPE_NICK: *data = GNUNET_strdup (s); - *data_size = strlen (s); + *data_size = strlen (s) + 1; //Store 0-terminator return GNUNET_OK; case GNUNET_GNSRECORD_TYPE_LEHO: