From 6c2cafdcb0341929b62e41c62919ca958ea0f6de Mon Sep 17 00:00:00 2001 From: Louis Scalbert Date: Tue, 27 Sep 2022 12:22:24 +0200 Subject: lib: extend sbuf size sbuf variable is used among other things to store IS-IS database output. Future commits will introduce the output of extended access groups in the "show isis database detail" output. Extend the sbuf size to have chance to store all information. Signed-off-by: Louis Scalbert --- lib/sbuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sbuf.c') diff --git a/lib/sbuf.c b/lib/sbuf.c index c04af153b1..3f1b02eaf8 100644 --- a/lib/sbuf.c +++ b/lib/sbuf.c @@ -33,8 +33,8 @@ void sbuf_init(struct sbuf *dest, char *buf, size_t size) dest->buf = buf; dest->size = size; } else { - dest->buf = XMALLOC(MTYPE_TMP, 4096); - dest->size = 4096; + dest->buf = XMALLOC(MTYPE_TMP, SBUF_DEFAULT_SIZE); + dest->size = SBUF_DEFAULT_SIZE; } dest->pos = 0; -- cgit v1.2.3