diff --git a/compiler-rt/lib/profile/InstrProfilingPlatformFuchsia.c b/compiler-rt/lib/profile/InstrProfilingPlatformFuchsia.c --- a/compiler-rt/lib/profile/InstrProfilingPlatformFuchsia.c +++ b/compiler-rt/lib/profile/InstrProfilingPlatformFuchsia.c @@ -52,7 +52,7 @@ int ret = vsnprintf(s, sizeof(s), fmt, ap); va_end(ap); - __sanitizer_log_write(s, ret + 1); + __sanitizer_log_write(s, ret); } struct lprofVMOWriterCtx {