From f12951bd1d126de105c806f3751579c93708e25d Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Mon, 29 May 2023 00:30:55 -0700 Subject: [PATCH] Fix typo --- native/src/base/logging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/src/base/logging.cpp b/native/src/base/logging.cpp index a093284e4..8f25df642 100644 --- a/native/src/base/logging.cpp +++ b/native/src/base/logging.cpp @@ -15,7 +15,7 @@ static int fmt_and_log_with_rs(LogLevel level, const char *fmt, va_list ap) { buf[0] = '\0'; // Fortify logs when a fatal error occurs. Do not run through fortify again int len = std::min(__call_bypassing_fortify(vsnprintf)(buf, sz, fmt, ap), sz - 1); - log_with_rs(level, u8_slice(buf, sz)); + log_with_rs(level, u8_slice(buf, len)); return len; }