From e9cf9c79ff159b59cfc61887ad8a69164785a1c9 Mon Sep 17 00:00:00 2001 From: turret Date: Sat, 30 Mar 2024 21:23:48 -0500 Subject: log: increase buffer size --- util/log.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'util') diff --git a/util/log.c b/util/log.c index afbc2e3..de80ec4 100644 --- a/util/log.c +++ b/util/log.c @@ -78,10 +78,9 @@ static int vaprint(const char *fmt, va_list ap) /* we essentially print the user's raw input to its own buffer, later we will parse it and print out ANSI colors and what not */ - char buf[512]; + char *buf = malloc(1<<16); - vsnprintf(buf, 512, fmt, ap); - buf[512 - 1] = '\0'; + vsnprintf(buf, 1<<16, fmt, ap); size_t colon = 0; if(parsecolon) { -- cgit v1.2.3