diff --git a/moo/lib/fmt.c b/moo/lib/fmt.c index 1417467..38a055c 100644 --- a/moo/lib/fmt.c +++ b/moo/lib/fmt.c @@ -1907,7 +1907,7 @@ redo: len = max; } - newcapa = MOO_ALIGN_POW2(moo->log.len + len, 512); /* TODO: adjust this capacity */ + newcapa = MOO_ALIGN_POW2(moo->log.len + len, MOO_LOG_CAPA_ALIGN); if (newcapa > moo->option.log_maxcapa) { /* [NOTE]