summaryrefslogtreecommitdiff
path: root/lib/sbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sbuf.c')
-rw-r--r--lib/sbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sbuf.c b/lib/sbuf.c
index 167976d0f2..2762e44993 100644
--- a/lib/sbuf.c
+++ b/lib/sbuf.c
@@ -17,8 +17,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;