From c1f97ce78998d87ef8e74c5575de8fee36794763 Mon Sep 17 00:00:00 2001 From: bjorn Date: Sun, 1 Mar 2015 21:18:52 +0800 Subject: [PATCH] Update log_posix.c size error --- src/core/support/log_posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/support/log_posix.c b/src/core/support/log_posix.c index 8f85791466d..afca792c404 100644 --- a/src/core/support/log_posix.c +++ b/src/core/support/log_posix.c @@ -64,7 +64,7 @@ void gpr_log(const char *file, int line, gpr_log_severity severity, } else { message = allocated = gpr_malloc(ret + 1); va_start(args, format); - vsnprintf(message, ret, format, args); + vsnprintf(message, ret + 1, format, args); va_end(args); } gpr_log_message(file, line, severity, message);