diff --git a/src/errors.c b/src/errors.c index 62a5ebd3b..1069a69d2 100644 --- a/src/errors.c +++ b/src/errors.c @@ -201,7 +201,7 @@ struct ring *startup_logs_dup(struct ring *src) struct ring *dst = NULL; /* must use the size of the previous buffer */ - dst = ring_new(ring_size(src)); + dst = ring_new(ring_allocated_size(src)); if (!dst) goto error;