Merge pull request #902 from bjornxiong/master

Update log_posix.c
pull/907/head
Craig Tiller 10 years ago
commit cfe6da22a5
  1. 2
      src/core/support/log_posix.c

@ -64,7 +64,7 @@ void gpr_log(const char *file, int line, gpr_log_severity severity,
} else { } else {
message = allocated = gpr_malloc(ret + 1); message = allocated = gpr_malloc(ret + 1);
va_start(args, format); va_start(args, format);
vsnprintf(message, ret, format, args); vsnprintf(message, ret + 1, format, args);
va_end(args); va_end(args);
} }
gpr_log_message(file, line, severity, message); gpr_log_message(file, line, severity, message);

Loading…
Cancel
Save