From 1f9494979268b62ed4b4588fb7d9e790c0e12100 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Mon, 26 Oct 2026 22:32:52 +0100 Subject: replace all calls to sprintf with a format helper that advances a cursor. Also convert the meta-formatter (i.e. results printer) to this scheme --- trackerlogic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'trackerlogic.h') diff --git a/trackerlogic.h b/trackerlogic.h index 42018c3..63abf78 100644 --- a/trackerlogic.h +++ b/trackerlogic.h @@ -187,7 +187,7 @@ void exerr(const char *message); otherwise it is released in return_peers_for_torrent */ size_t add_peer_to_torrent_and_return_peers(PROTO_FLAG proto, struct ot_workstruct *ws, size_t amount); size_t remove_peer_from_torrent(PROTO_FLAG proto, struct ot_workstruct *ws); -size_t return_tcp_scrape_for_torrent(ot_hash const *hash_list, size_t amount, char *reply); +void return_tcp_scrape_for_torrent(ot_hash const *hash_list, size_t amount, char **reply, const char *reply_end); size_t return_udp_scrape_for_torrent(ot_hash const hash, char *reply); void add_torrent_from_saved_state(ot_hash const hash, ot_time base, size_t down_count); #ifdef _DEBUG_RANDOMTORRENTS -- cgit v1.3