From 6a8e2ddcec68886179dfe9bf3ece8e95fbf99758 Mon Sep 17 00:00:00 2001 From: "zhou.weiguo" Date: Wed, 17 Apr 2024 17:30:05 +0800 Subject: [PATCH] fix build issue which reported by github CI system --- llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama.cpp b/llama.cpp index 360a8cf35..a57fc709d 100644 --- a/llama.cpp +++ b/llama.cpp @@ -17149,7 +17149,7 @@ static void llama_log_internal_v(ggml_log_level level, const char * file, const va_copy(args_copy, args); char buffer[1024]; int len_prefix = snprintf(buffer, 1024, "[%s, %d]: ", func, line); // param file not used in this file - int len = vsnprintf(buffer + len_prefix, 1024 - len, format, args); + int len = vsnprintf(buffer + len_prefix, 1024 - len_prefix, format, args); if (len < (1024 - len_prefix)) { #if (defined __ANDROID__) || (defined ANDROID) __android_log_print(level, "llama.cpp", "%s", buffer);