From 724b0047e66b9182781c26c67621357e61ed5da2 Mon Sep 17 00:00:00 2001 From: 0x221E Date: Sat, 17 Jan 2026 18:15:40 +0100 Subject: [PATCH] Patch: Fix variadic use in die_f and log_f --- src/utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils.c b/src/utils.c index f5fbbd8..df863fc 100644 --- a/src/utils.c +++ b/src/utils.c @@ -10,10 +10,10 @@ void die_f(const char* func, int l, const char* fmt,...) { va_list args; - va_start(args); + va_start(args, fmt); printf("IBUILD Error (%d:%s): ", l, func); vprintf(fmt, args); - printf("\nlast syscall error: \n", strerror(errno)); + printf("\nlast syscall error: %s \n", strerror(errno)); va_end(args); exit(1); } @@ -21,7 +21,7 @@ void die_f(const char* func, int l, const char* fmt,...) void log_f(const char* func, int l, const char* fmt, ...) { va_list args; - va_start(args); + va_start(args, fmt); printf("IBUILD Log (%d:%s): ", l, func); vprintf(fmt, args); printf("\n");