aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/support/log_posix.c
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2015-09-11 13:33:57 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2015-09-11 18:37:59 -0700
commita4c43a6cbb6554fe180e0d64dfa27f6b868b65d5 (patch)
treef18b8159289ec0652a219a016eefaaa86b600270 /src/core/support/log_posix.c
parent3924fcb1c0d0c2ae9fd2995da4ce79e903766fef (diff)
parent35fea62432d7a41b5b3bc96d9af7975310553fe7 (diff)
Merge branch 'master' of github.com:grpc/grpc into rr_with_registry
Diffstat (limited to 'src/core/support/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 940ee20f15..021c4666d4 100644
--- a/src/core/support/log_posix.c
+++ b/src/core/support/log_posix.c
@@ -62,7 +62,7 @@ void gpr_log(const char *file, int line, gpr_log_severity severity,
} else if ((size_t)ret <= sizeof(buf) - 1) {
message = buf;
} else {
- message = allocated = gpr_malloc(ret + 1);
+ message = allocated = gpr_malloc((size_t)ret + 1);
va_start(args, format);
vsnprintf(message, ret + 1, format, args);
va_end(args);