From b94c50a94a9128093ff7768768f35741c94f22be Mon Sep 17 00:00:00 2001 From: rkhapov Date: Tue, 26 Nov 2024 10:53:34 +0000 Subject: [PATCH] sources/err_logger.c: fix typo It's an array of pointers, not plain od_counter_t Signed-off-by: rkhapov --- sources/err_logger.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/err_logger.c b/sources/err_logger.c index e68f698b..bf88fcc3 100644 --- a/sources/err_logger.c +++ b/sources/err_logger.c @@ -3,9 +3,9 @@ #include #include -static size_t err_logger_required_buf_size(int sz) +static size_t err_logger_required_buf_size(size_t sz) { - return sizeof(od_error_logger_t) + (sz * sizeof(od_counter_t)); + return sizeof(od_error_logger_t) + (sz * sizeof(od_counter_t *)); } od_error_logger_t *od_err_logger_create(size_t intervals_count)