Skip to content

Commit

Permalink
sources/err_logger.c: fix typo
Browse files Browse the repository at this point in the history
It's an array of pointers, not plain od_counter_t

Signed-off-by: rkhapov <[email protected]>
  • Loading branch information
rkhapov committed Nov 26, 2024
1 parent 0a704db commit ba15348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/err_logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

static size_t err_logger_required_buf_size(int 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)
Expand Down

0 comments on commit ba15348

Please sign in to comment.