From: Julius Bünger Date: Thu, 21 Feb 2019 13:31:10 +0000 (+0100) Subject: RPS service: Get length of buffer, not of string X-Git-Tag: v0.11.0~63^2~22 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=331f2ef05ecddd9a4c4a355076fd75857d046221;p=oweals%2Fgnunet.git RPS service: Get length of buffer, not of string --- 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,