diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-26 22:32:52 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-26 22:32:52 +0100 |
| commit | 1f9494979268b62ed4b4588fb7d9e790c0e12100 (patch) | |
| tree | ed4f78369fe610b5c9188cb4159a23370d50a799 /trackerlogic.h | |
| parent | 6d5485b97cd46f81512e9198ac7c59c7ba1d9247 (diff) | |
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
Diffstat (limited to 'trackerlogic.h')
| -rw-r--r-- | trackerlogic.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); | |||
| 187 | otherwise it is released in return_peers_for_torrent */ | 187 | otherwise it is released in return_peers_for_torrent */ |
| 188 | size_t add_peer_to_torrent_and_return_peers(PROTO_FLAG proto, struct ot_workstruct *ws, size_t amount); | 188 | size_t add_peer_to_torrent_and_return_peers(PROTO_FLAG proto, struct ot_workstruct *ws, size_t amount); |
| 189 | size_t remove_peer_from_torrent(PROTO_FLAG proto, struct ot_workstruct *ws); | 189 | size_t remove_peer_from_torrent(PROTO_FLAG proto, struct ot_workstruct *ws); |
| 190 | size_t return_tcp_scrape_for_torrent(ot_hash const *hash_list, size_t amount, char *reply); | 190 | void return_tcp_scrape_for_torrent(ot_hash const *hash_list, size_t amount, char **reply, const char *reply_end); |
| 191 | size_t return_udp_scrape_for_torrent(ot_hash const hash, char *reply); | 191 | size_t return_udp_scrape_for_torrent(ot_hash const hash, char *reply); |
| 192 | void add_torrent_from_saved_state(ot_hash const hash, ot_time base, size_t down_count); | 192 | void add_torrent_from_saved_state(ot_hash const hash, ot_time base, size_t down_count); |
| 193 | #ifdef _DEBUG_RANDOMTORRENTS | 193 | #ifdef _DEBUG_RANDOMTORRENTS |
