summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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: