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 --- ot_stats.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ot_stats.h') diff --git a/ot_stats.h b/ot_stats.h index 203831c..fb6aad8 100644 --- a/ot_stats.h +++ b/ot_stats.h @@ -44,8 +44,8 @@ enum { void stats_issue_event(ot_status_event event, PROTO_FLAG proto, uintptr_t event_data); void stats_deliver(int64_t sock, int tasktype); void stats_cleanup(void); -size_t return_stats_for_tracker(char *reply, int mode, int format); -size_t stats_return_tracker_version(char *reply); +void return_stats_for_tracker(char **reply, const char *reply_end, int mode, int format); +void stats_return_tracker_version(char **reply, const char *reply_end); void stats_init(void); void stats_deinit(void); -- cgit v1.3