summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2020-11-14 19:02:01 +0000
committerDaniel Golle <daniel@makrotopia.org>2020-11-14 19:55:40 +0000
commitea18ebde8266b4699735fff6deb14539a4f549de (patch)
tree814b491cce8f2489d4fa8fc333d467a288ff9e59 /src
parent395cea2596aa14e88a97e665c860afdc67a4862a (diff)
rps: fix format not a string literal and no format arguments
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'src')
-rw-r--r--src/rps/gnunet-service-rps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index 58fbd6a18..ecbc8e208 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -2926,7 +2926,7 @@ new_sub (const struct GNUNET_HashCode *hash,
char str_hash[105];
GNUNET_snprintf (str_hash,
- sizeof(str_hash),
+ sizeof(str_hash), "%s",
GNUNET_h2s_full (hash));
tmp_filename_valid_peers = sub->filename_valid_peers;
GNUNET_asprintf (&sub->filename_valid_peers,
@@ -3017,7 +3017,7 @@ write_histogram_to_file (const uint32_t hist_array[],
LOG (GNUNET_ERROR_TYPE_DEBUG,
"Writing push stats to disk\n");
to_file_w_len (file_name_full,
- SIZE_DUMP_FILE,
+ SIZE_DUMP_FILE, "%s",
collect_str);
GNUNET_free (file_name_full);
}