aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-03-01 18:41:19 -0800
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-03-01 18:41:19 -0800
commitcfe6da22a5f29b3f85e4ca178fbf81a9806380ed (patch)
tree6e293d9f34662519435621b531ab10939fa41ba1
parentfe3c37c2817a5973d5c0a0d72e2f114d7551fe36 (diff)
parentc1f97ce78998d87ef8e74c5575de8fee36794763 (diff)
Merge pull request #902 from bjornxiong/master
Update log_posix.c
-rw-r--r--src/core/support/log_posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/support/log_posix.c b/src/core/support/log_posix.c
index 8f85791466..afca792c40 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);