diff options
author | Julius Bünger <buenger@mytum.de> | 2019-02-21 14:31:10 +0100 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2019-02-21 14:31:10 +0100 |
commit | 331f2ef05ecddd9a4c4a355076fd75857d046221 (patch) | |
tree | a580dae885591e24a741efaef5fc4867b293488e /src/rps | |
parent | e6d93f325dbeac6fe52ed1222b3fa808f5e228b0 (diff) | |
download | gnunet-331f2ef05ecddd9a4c4a355076fd75857d046221.tar.gz gnunet-331f2ef05ecddd9a4c4a355076fd75857d046221.zip |
RPS service: Get length of buffer, not of string
Diffstat (limited to 'src/rps')
-rw-r--r-- | src/rps/gnunet-service-rps.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
2848 | char str_hash[105]; | 2848 | char str_hash[105]; |
2849 | 2849 | ||
2850 | GNUNET_snprintf (str_hash, | 2850 | GNUNET_snprintf (str_hash, |
2851 | strlen (str_hash), | 2851 | sizeof (str_hash), |
2852 | GNUNET_h2s_full (hash)); | 2852 | GNUNET_h2s_full (hash)); |
2853 | tmp_filename_valid_peers = sub->filename_valid_peers; | 2853 | tmp_filename_valid_peers = sub->filename_valid_peers; |
2854 | GNUNET_asprintf (&sub->filename_valid_peers, | 2854 | GNUNET_asprintf (&sub->filename_valid_peers, |