From c2e682c75378b000ad75c91342b0d459edfb2720 Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Sat, 5 Oct 2019 22:45:42 +0200 Subject: [PATCH] nick must be 0-terminated else resolver will discard/break --- src/gns/plugin_gnsrecord_gns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.25.1