diff --git a/core/dcb.c b/core/dcb.c index 59d5aa7d0..b73ed6845 100644 --- a/core/dcb.c +++ b/core/dcb.c @@ -635,7 +635,7 @@ va_list args; vsnprintf(GWBUF_DATA(buf), 10240, fmt, args); va_end(args); - buf->end = GWBUF_DATA(buf) + strlen(GWBUF_DATA(buf)) + 1; + buf->end = GWBUF_DATA(buf) + strlen(GWBUF_DATA(buf)); dcb->func.write(dcb, buf); }