From d7c31e44861b4d98fbddc177002e0a311a6d26af Mon Sep 17 00:00:00 2001 From: A404M Date: Wed, 7 May 2025 01:29:34 +0330 Subject: fix bugs in dereference and address and logs --- src/utils/log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils/log.c') diff --git a/src/utils/log.c b/src/utils/log.c index 54253de..6d95628 100644 --- a/src/utils/log.c +++ b/src/utils/log.c @@ -7,7 +7,7 @@ void _printLogBack(const char *format, const char *file, int line, ...) { va_list args; - va_start(args, end); + va_start(args, line); char *errorStr; vasprintf(&errorStr, format, args); @@ -18,7 +18,7 @@ void _printLogBack(const char *format, const char *file, int line, ...) { void _printErrorWarningBack(const char *file, int line, const char *begin, const char *end, bool isError, const char *format, ...) { va_list args; - va_start(args, end); + va_start(args, format); char *errorStr; vasprintf(&errorStr, format, args); -- cgit v1.2.3