[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: nick must be 0-terminated e
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: nick must be 0-terminated else resolver will discard/break |
Date: |
Sat, 05 Oct 2019 22:48:00 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new c2e682c75 nick must be 0-terminated else resolver will discard/break
c2e682c75 is described below
commit c2e682c75378b000ad75c91342b0d459edfb2720
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Sat Oct 5 22:45:42 2019 +0200
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:
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: nick must be 0-terminated else resolver will discard/break,
gnunet <=