From 331f2ef05ecddd9a4c4a355076fd75857d046221 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20B=C3=BCnger?= Date: Thu, 21 Feb 2019 14:31:10 +0100 Subject: [PATCH] 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, -- 2.25.1