summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2019-10-05 22:45:42 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2019-10-05 22:45:42 +0200
commitc2e682c75378b000ad75c91342b0d459edfb2720 (patch)
tree14fef90163f23ca5cac7b8815d4ba887ef76fcd8
parent06c45819f1a04987889546eafc60ef36b92d0e0d (diff)
nick must be 0-terminated else resolver will discard/break
-rw-r--r--src/gns/plugin_gnsrecord_gns.c2
1 files changed, 1 insertions, 1 deletions
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: