Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

version: the real 1.2.9, fix another bug from buf.c when input is lon…

…ger than buffer size
  • Loading branch information...
commit 57ca7478100b0c7f5489f148cdc0e3b25f46508e 1 parent c351807
@HardySimpson authored
Showing with 1 addition and 2 deletions.
  1. +1 −1  src/buf.c
  2. +0 −1  src/zlog.c
View
2  src/buf.c
@@ -244,7 +244,7 @@ int zlog_buf_vprintf(zlog_buf_t * a_buf, const char *format, va_list args)
if (rc > 0) {
zc_error("conf limit to %ld, can't extend, so truncate", a_buf->size_max);
va_copy(ap, args);
- size_left = a_buf->end_plus_1 - a_buf->start;
+ size_left = a_buf->end_plus_1 - a_buf->tail;
vsnprintf(a_buf->tail, size_left, format, ap);
a_buf->tail += size_left - 1;
//*(a_buf->tail) = '\0';
View
1  src/zlog.c
@@ -443,7 +443,6 @@ int dzlog_set_category(const char *cname)
} \
} \
\
- zc_error("%d, %d", a_thread->init_version, zlog_env_init_version); \
if (a_thread->init_version != zlog_env_init_version) { \
/* as mdc is still here, so can not easily del and new */ \
rd = zlog_thread_rebuild_msg_buf(a_thread, \
Please sign in to comment.
Something went wrong with that request. Please try again.