gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: RPS service: Get length of


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: RPS service: Get length of buffer, not of string
Date: Thu, 21 Feb 2019 14:32:42 +0100

This is an automated email from the git hooks/post-receive script.

julius-buenger pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 331f2ef05 RPS service: Get length of buffer, not of string
331f2ef05 is described below

commit 331f2ef05ecddd9a4c4a355076fd75857d046221
Author: Julius Bünger <address@hidden>
AuthorDate: Thu Feb 21 14:31:10 2019 +0100

    RPS service: Get length of buffer, not of string
---
 src/rps/gnunet-service-rps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index fe863c5f4..194a5669c 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -2848,7 +2848,7 @@ new_sub (const struct GNUNET_HashCode *hash,
     char str_hash[105];
 
     GNUNET_snprintf (str_hash,
-                    strlen (str_hash),
+                    sizeof (str_hash),
                     GNUNET_h2s_full (hash));
     tmp_filename_valid_peers = sub->filename_valid_peers;
     GNUNET_asprintf (&sub->filename_valid_peers,

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]